13 lines
475 B
Bash
Executable File
13 lines
475 B
Bash
Executable File
#!/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#https://calendso.example.com#$NEXT_PUBLIC_APP_URL#g"
|
|
find \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#https://calendso.example.com#$BASE_URL#g"
|
|
|
|
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
|
npx prisma migrate deploy
|
|
yarn start
|