able to handle launcher login with gem

This commit is contained in:
bruckwubete
2018-07-04 14:48:22 -04:00
parent 2bb41977ed
commit 3c11aca1aa
6 changed files with 20 additions and 8 deletions

View File

@ -1,4 +1,9 @@
#!/bin/bash
while [ "$RAILS_ENV" = "production" ] && ! curl http://$DB_HOST:5432/ 2>&1 | grep '52'
do
echo "Waiting for postgres to start up ..."
sleep 1
done
bundle exec rake db:create
bundle exec rake db:migrate