web-run 433 B

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