From 43ac48fdae0c06c53ee28c46f3da31cd0a8dadbc Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 10 Sep 2022 17:24:59 -0700 Subject: [PATCH] db migrate --- production.Dockerfile | 4 ++++ render.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/production.Dockerfile b/production.Dockerfile index f82d4f6..8544dcc 100644 --- a/production.Dockerfile +++ b/production.Dockerfile @@ -32,6 +32,10 @@ COPY . . ARG SECRET_KEY_BASE=fakekeyforassets RUN bin/rails assets:clobber && bundle exec rails assets:precompile +RUN bin/rails db:migrate + EXPOSE 3000 +# ENTRYPOINT db:migrate + CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"] diff --git a/render.yaml b/render.yaml index 65b29cd..c1ae6cf 100644 --- a/render.yaml +++ b/render.yaml @@ -13,7 +13,7 @@ services: region: oregon branch: main plan: free - dockerCommand: "bin/rails db:migrate && bundle exec puma -C config/puma.rb" + dockerCommand: "bundle exec puma -C config/puma.rb" numInstances: 1 healthCheckPath: / envVars: