@ -1,5 +1,5 @@
#!/bin/bash
if [ "$RAILS_ENV" = "production" ]; then
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 ..."