fix start indentation

This commit is contained in:
Joshua Arts 2018-07-30 15:42:45 -04:00
parent d7083363b7
commit b8e3045b30
1 changed files with 6 additions and 5 deletions

View File

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