From 13be7addaffa6fd763549d3ccffbeacb6d845648 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 10 Sep 2022 17:36:21 -0700 Subject: [PATCH] db migrate --- README.md | 1 + production.Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76cadc7..113fc62 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ This app can be hosted wherever Ruby is supported and PostgreSQL databases can b [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/ryanwi/rails7-on-docker) +Set `SECRET_KEY_BASE` environment variable ## Credits/References diff --git a/production.Dockerfile b/production.Dockerfile index e3da282..c70aaa4 100644 --- a/production.Dockerfile +++ b/production.Dockerfile @@ -32,8 +32,9 @@ 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? +# https://community.render.com/t/release-command-for-db-migrations/247/6 ARG DATABASE_URL -# RUN printenv RUN bin/rails db:migrate EXPOSE 3000