forked from External/greenlight
adding DB_ADAPTER check
This commit is contained in:
parent
cec4393837
commit
b7801f9874
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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'
|
while ! curl http://$DB_HOST:${DB_PORT:-5432}/ 2>&1 | grep '52'
|
||||||
do
|
do
|
||||||
echo "Waiting for postgres to start up ..."
|
echo "Waiting for postgres to start up ..."
|
||||||
|
|
Loading…
Reference in New Issue