Commit cbb798cf authored by Antonio Terceiro's avatar Antonio Terceiro

script/quick-start: wait for postgresql to start

Depending on the setup PostgreSQL might still be starting up when we get
to the first point where Rails will try connecting, and will fail with:

  PG::ConnectionBad: FATAL:  the database system is starting up

So we wait for PostgreSQL to be ready.
parent bb680e0a
......@@ -96,6 +96,9 @@ fi
# Ensure database is running
sudo service postgresql start
while ! sudo -u postgres psql < /dev/null >/dev/null 2>&1; do
sleep 5s
if test -e config/database.yml && test "$force_install" = 'false'; then
say 'Not updating existent database.yml.'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment