소스 검색

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

tags/1.7.1
Boris Polonsky 3 달 전
부모
커밋
e64e7563f6
No account linked to committer's email address
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…
취소
저장