From c06fbd551a02a380485f6573548bb756b55b5969 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Sat, 30 Sep 2023 20:52:18 -0700 Subject: [PATCH] connect to database --- bin/docker-entrypoint-production | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/docker-entrypoint-production b/bin/docker-entrypoint-production index 452771b..0848d2f 100755 --- a/bin/docker-entrypoint-production +++ b/bin/docker-entrypoint-production @@ -5,4 +5,6 @@ # ./bin/rails db:prepare # fi +if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi + exec "${@}"