migrate still needed in Render
This commit is contained in:
@@ -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 "${@}"
|
||||
|
||||
Reference in New Issue
Block a user