Browse Source

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

tags/1.7.1
Boris Polonsky 3 months ago
parent
commit
e64e7563f6
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      api/docker/entrypoint.sh

+ 5
- 0
api/docker/entrypoint.sh View File

@@ -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…
Cancel
Save