Moving towards a consolidated entrypoint database setup

This commit is contained in:
Ryan W
2023-09-30 21:01:33 -07:00
parent c06fbd551a
commit b71e65d1e3
+5 -1
View File
@@ -1,10 +1,14 @@
#!/bin/bash -e
echo "${*}"
# If running the rails server then create or migrate existing database
# if [ "${*}" == "./bin/rails server" ]; then
# ./bin/rails db:prepare
# fi
if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
if [ -n "$RENDER" ]; then
./bin/rails db:migrate
fi
exec "${@}"