Sfoglia il codice sorgente

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

tags/1.7.1
Boris Polonsky 3 mesi fa
parent
commit
e64e7563f6
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      api/docker/entrypoint.sh

+ 5
- 0
api/docker/entrypoint.sh Vedi 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…
Annulla
Salva