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.

fix: ensure db migration in docker entry script running with `upgrade-db` command for proper locking (#6946)

Bowen Liangf656e1bae2ae
diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh
index 64e4e719ab9..9cf5c505d13 100755
--- a/api/docker/entrypoint.sh
+++ b/api/docker/entrypoint.sh
@@ -4,7 +4,7 @@ set -e
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
echo "Running migrations"
- flask db upgrade
+ flask upgrade-db
fi
if [[ "${MODE}" == "worker" ]]; then