Render is using ENTRYPOINT now

This commit is contained in:
Ryan W
2023-09-30 21:55:05 -07:00
parent 26866733cc
commit 3f3f94f290
2 changed files with 4 additions and 7 deletions
+4
View File
@@ -9,4 +9,8 @@ echo "${*}"
# ./bin/rails db:prepare
# fi
# Run database migrations when deploying to Render. It is not great, maybe there's a better way?
# https://community.render.com/t/release-command-for-db-migrations/247/6
if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
exec "${@}"