Further fix to dynamic env vars
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e1eb849679
commit
873602650e
@ -8,8 +8,8 @@ RUN yarn install --frozen-lockfile
|
||||
FROM node:14 as builder
|
||||
|
||||
WORKDIR /app
|
||||
ENV BASE_URL=APP_BASE_URL_VAR
|
||||
ENV NEXT_PUBLIC_APP_URL=APP_NEXT_PUBLIC_APP_URL_VAR
|
||||
ENV BASE_URL=https://calendso.example.com
|
||||
ENV NEXT_PUBLIC_APP_URL=https://calendso.example.com
|
||||
|
||||
COPY calendso .
|
||||
|
||||
|
@ -4,8 +4,8 @@ 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"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user