1
0

web-run 404 B

123456789101112
  1. #!/bin/bash -xe
  2. if [ ! -f /attachments/inited ];
  3. then
  4. echo "Giving Postgres time to start"
  5. sleep 10
  6. touch /attachments/inited
  7. PAGURE_CONFIG=/code/dev/openshift.cfg python createdb.py --initial /code/dev/openshift_alembic.ini
  8. else
  9. alembic --config /code/dev/openshift_alembic.ini upgrade head
  10. fi
  11. exec /usr/bin/python /code/runserver.py --host 0.0.0.0 --config /code/dev/openshift.cfg