Fix docker setup (#12209)

For fresh install, we need the migrations to happen before the upgrade
command is triggered as the upgrade command is a NestJS command and the
app will try to load env variables from db
This commit is contained in:
Charles Bochet
2025-05-22 11:32:00 +02:00
committed by GitHub
parent 342583e891
commit 891758bb89

View File

@ -22,6 +22,7 @@ setup_and_migrate_db() {
# Run setup and migration scripts
NODE_OPTIONS="--max-old-space-size=1500" tsx ./scripts/setup-db.ts
yarn database:migrate:prod
fi
yarn command:prod upgrade