diff --git a/bin/start b/bin/start index c5c5a8e1..8bb6e0a1 100755 --- a/bin/start +++ b/bin/start @@ -1,10 +1,11 @@ #!/bin/bash + if [ "$RAILS_ENV" = "production" ] && [ "$DB_ADAPTER" = "postgresql" ]; then - while ! curl http://$DB_HOST:${DB_PORT:-5432}/ 2>&1 | grep '52' - do - echo "Waiting for postgres to start up ..." - sleep 1 - done + while ! curl http://$DB_HOST:${DB_PORT:-5432}/ 2>&1 | grep '52' + do + echo "Waiting for postgres to start up ..." + sleep 1 + done fi bundle exec rake db:create