2
0

🐳 Fix docker image runtime error

Closes #719
This commit is contained in:
Baptiste Arnaud
2023-09-01 15:41:11 +02:00
parent 3d7f778dee
commit 1aa017153a
5 changed files with 213 additions and 19 deletions

View File

@ -1,15 +1,10 @@
#!/bin/bash
echo $DATABASE_URL;
cd apps/builder;
node -e "const { configureRuntimeEnv } = require('next-runtime-env/build/configure'); configureRuntimeEnv();"
cd ../..;
echo 'Waiting 5s for db to be ready...';
sleep 5;
pnpm prisma migrate deploy --schema=packages/prisma/postgresql/schema.prisma;
./wait-for-it.sh $DATABASE_URL -- ./node_modules/.bin/prisma migrate deploy --schema=packages/prisma/postgresql/schema.prisma;
node apps/builder/server.js;