blob: de4af0967f8d0b5d7abb16abc75b3fdb95f989d9 [file] [log] [blame]
#! /bin/bash
function wait_postgres {
sudo -u postgres psql -c '\q'
while [[ "$?" != "0" ]]; do
echo Waiting for postgres to start
sleep 1
sudo -u postgres psql -c '\q'
done
}
cd /tmp
service postgresql start
wait_postgres
service supervisor start
cd /opt/xos
python manage.py runserver 127.0.0.1:8000 --insecure