From 42d2615cb070cdfc4020269f07ed5fdb016df8f3 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 30 Sep 2023 22:13:55 -0700 Subject: [PATCH] Add note about migations and the CMD --- bin/docker-entrypoint-production | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/docker-entrypoint-production b/bin/docker-entrypoint-production index 2f1b9ba..74d0683 100755 --- a/bin/docker-entrypoint-production +++ b/bin/docker-entrypoint-production @@ -3,8 +3,13 @@ echo "entrypoint" echo "${*}" +# NOTE: Enable this as you need to get migrations working in your deployed +# (i.e. Production) environments. Match the condition check to what you have in +# the Dockerfile CMD. I use puma in the production.Dockerfile as that's the +# recommended option by the Puma team (https://github.com/puma/puma#rails), but +# the default Rails Dockerfile uses `./bin/rails server` +# # If running the rails server then create or migrate existing database -# bundle exec puma -C config/puma.rb # if [ "${*}" == "./bin/rails server" ]; then # ./bin/rails db:prepare # fi