db migrate

This commit is contained in:
Ryan W
2022-09-10 17:24:59 -07:00
parent 3aa050b8f7
commit 43ac48fdae
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -32,6 +32,10 @@ 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
RUN bin/rails db:migrate
EXPOSE 3000 EXPOSE 3000
# ENTRYPOINT db:migrate
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"] CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]
+1 -1
View File
@@ -13,7 +13,7 @@ services:
region: oregon region: oregon
branch: main branch: main
plan: free plan: free
dockerCommand: "bin/rails db:migrate && bundle exec puma -C config/puma.rb" dockerCommand: "bundle exec puma -C config/puma.rb"
numInstances: 1 numInstances: 1
healthCheckPath: / healthCheckPath: /
envVars: envVars: