From b7801f9874cde218374e832374b2470b5eafb66b Mon Sep 17 00:00:00 2001 From: bruckwubete Date: Wed, 11 Jul 2018 13:19:20 -0400 Subject: [PATCH] adding DB_ADAPTER check --- bin/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start b/bin/start index d7732ed8..c5c5a8e1 100755 --- a/bin/start +++ b/bin/start @@ -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 ..."