1
0

web-run 466 B

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