2021-07-02 23:12:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
|
2022-01-05 09:24:41 +00:00
|
|
|
# Set environment variables
|
|
|
|
echo BASE_URL $BASE_URL
|
|
|
|
echo NEXT_PUBLIC_APP_URL "$NEXT_PUBLIC_APP_URL"
|
2022-01-05 10:04:29 +00:00
|
|
|
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"
|
2022-01-05 09:24:41 +00:00
|
|
|
|
2021-12-15 15:01:30 +00:00
|
|
|
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
2021-10-24 19:56:01 +00:00
|
|
|
npx prisma migrate deploy
|
|
|
|
yarn start
|