From d07413e57fdcb113c9b11d74d13824c05391b0db Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 10 Sep 2022 17:57:08 -0700 Subject: [PATCH] debug render deploy --- production.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/production.Dockerfile b/production.Dockerfile index 6ad538f..947b156 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 -# 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 +ARG RENDER ARG DATABASE_URL RUN printenv RUN if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi