forked from External/greenlight
Fixed issues with maintenance mode (#683)
This commit is contained in:
committed by
Jesus Federico
parent
d1e50f2ef6
commit
0b64acaecf
@ -9,8 +9,11 @@ if [ "$RAILS_ENV" = "production" ] && [ "$DB_ADAPTER" = "postgresql" ]; then
|
||||
fi
|
||||
|
||||
bundle exec rake db:create
|
||||
if ! bundle exec rake db:migrate ; then
|
||||
export DB_MIGRATE_FAILED=1
|
||||
|
||||
if [ "$MAINTENANCE_MODE" != "readonly" ] && [ "$MAINTENANCE_MODE" != "full" ]; then
|
||||
if ! bundle exec rake db:migrate ; then
|
||||
export DB_MIGRATE_FAILED=1
|
||||
fi
|
||||
fi
|
||||
|
||||
bundle exec rake assets:precompile
|
||||
|
Reference in New Issue
Block a user