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: