debug render deploy
This commit is contained in:
@@ -69,7 +69,7 @@ This app can be hosted wherever Ruby is supported and PostgreSQL databases can b
|
|||||||
|
|
||||||
[](https://render.com/deploy?repo=https://github.com/ryanwi/rails7-on-docker)
|
[](https://render.com/deploy?repo=https://github.com/ryanwi/rails7-on-docker)
|
||||||
|
|
||||||
Set `SECRET_KEY_BASE` environment variable
|
NOTE: You will need to generate a production secret with `bin/rails secret` and set it as the `SECRET_KEY_BASE` environment variable.
|
||||||
|
|
||||||
## Credits/References
|
## Credits/References
|
||||||
|
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ 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
|
||||||
|
|
||||||
# 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
|
# https://community.render.com/t/release-command-for-db-migrations/247/6
|
||||||
ARG DATABASE_URL
|
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
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user