adding DB_ADAPTER check

This commit is contained in:
bruckwubete 2018-07-11 13:19:20 -04:00
parent cec4393837
commit b7801f9874
1 changed files with 1 additions and 1 deletions

View File

@ -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 ..."