forked from External/greenlight
passing params to the launcher gem
This commit is contained in:
12
bin/start
12
bin/start
@ -1,9 +1,11 @@
|
||||
#!/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
|
||||
if [ "$RAILS_ENV" = "production" ]; then
|
||||
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
|
||||
bundle exec rake db:migrate
|
||||
|
Reference in New Issue
Block a user