Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat(k8s): Add pure migration option for `api` component (#22750)

Boris Polonskye64e7563f6b5
diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh
index 59d652c11b2..4de9a25c2f9 100755
--- a/api/docker/entrypoint.sh
+++ b/api/docker/entrypoint.sh
@@ -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