migrate still needed in Render

This commit is contained in:
Ryan W
2023-09-30 21:08:14 -07:00
parent b71e65d1e3
commit 6b6e290bbb
+3 -3
View File
@@ -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 "${@}"