瀏覽代碼

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

tags/1.7.1
Boris Polonsky 3 月之前
父節點
當前提交
e64e7563f6
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      api/docker/entrypoint.sh

+ 5
- 0
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

Loading…
取消
儲存