From 6b6e290bbb591ead3d78576b79ea9b624b0d360e Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 30 Sep 2023 21:08:14 -0700 Subject: [PATCH] migrate still needed in Render --- bin/docker-entrypoint-production | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/docker-entrypoint-production b/bin/docker-entrypoint-production index 356d2de..16e7dfb 100755 --- a/bin/docker-entrypoint-production +++ b/bin/docker-entrypoint-production @@ -1,14 +1,14 @@ #!/bin/bash -e +echo "entrypoint" echo "${*}" # 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 -if [ -n "$RENDER" ]; then - ./bin/rails db:migrate -fi +if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi exec "${@}"