mirror of
https://github.com/langgenius/dify.git
synced 2025-12-25 01:00:42 -05:00
feat(k8s): Add pure migration option for api component (#22750)
This commit is contained in:
@@ -5,6 +5,11 @@ set -e
|
||||
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
||||
echo "Running migrations"
|
||||
flask upgrade-db
|
||||
# Pure migration mode
|
||||
if [[ "${MODE}" == "migration" ]]; then
|
||||
echo "Migration completed, exiting normally"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${MODE}" == "worker" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user