From 891758bb89da37ab05ba1b510523ba178de02d24 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 22 May 2025 11:32:00 +0200 Subject: [PATCH] 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 --- packages/twenty-docker/twenty/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-docker/twenty/entrypoint.sh b/packages/twenty-docker/twenty/entrypoint.sh index a7de30a37..5b523fe77 100755 --- a/packages/twenty-docker/twenty/entrypoint.sh +++ b/packages/twenty-docker/twenty/entrypoint.sh @@ -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