debug render deploy

This commit is contained in:
Ryan W
2022-09-10 17:53:39 -07:00
parent 13be7addaf
commit 01540596d8
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -32,10 +32,11 @@ COPY . .
ARG SECRET_KEY_BASE=fakekeyforassets
RUN bin/rails assets:clobber && bundle exec rails assets:precompile
# This is an approach for deploying to Render. It is not great, maybe there's a better way?
# For 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
ARG DATABASE_URL
RUN bin/rails db:migrate
RUN printenv
RUN if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
EXPOSE 3000