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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user