https://github.com/calendso/docker/commit/b5b0eb5a97cb2ec6ebea3fadc4108e23bb102515
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
# Set environment variables
|
||||
echo BASE_URL $BASE_URL
|
||||
echo NEXT_PUBLIC_APP_URL "$NEXT_PUBLIC_APP_URL"
|
||||
find \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_APP_URL_VAR#$NEXT_PUBLIC_APP_URL#g"
|
||||
find \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_BASE_URL_VAR#$BASE_URL#g"
|
||||
|
||||
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
||||
npx prisma migrate deploy
|
||||
yarn start
|
||||
|
||||
Reference in New Issue
Block a user