jack 1 月之前
父节点
当前提交
30f6c6e1b7
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      docker/entrypoint.sh

+ 4 - 4
docker/entrypoint.sh

@@ -2,10 +2,10 @@
 
 set -e
 
-#if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
-#  echo "Running migrations"
-#  alembic upgrade head
-#fi
+if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
+  echo "Running migrations"
+  alembic upgrade head
+fi
 
 if [[ "${MODE}" == "worker" ]]; then
   echo "celery run"