debug render deploy
This commit is contained in:
@@ -32,8 +32,9 @@ COPY . .
|
|||||||
ARG SECRET_KEY_BASE=fakekeyforassets
|
ARG SECRET_KEY_BASE=fakekeyforassets
|
||||||
RUN bin/rails assets:clobber && bundle exec rails assets:precompile
|
RUN bin/rails assets:clobber && bundle exec rails assets:precompile
|
||||||
|
|
||||||
# For when deploying to Render. It is not great, maybe there's a better way?
|
# Run database migrations when deploying to Render. It is not great, maybe there's a better way?
|
||||||
# https://community.render.com/t/release-command-for-db-migrations/247/6
|
# https://community.render.com/t/release-command-for-db-migrations/247/6
|
||||||
|
ARG RENDER
|
||||||
ARG DATABASE_URL
|
ARG DATABASE_URL
|
||||||
RUN printenv
|
RUN printenv
|
||||||
RUN if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
|
RUN if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user