|
Patrick Uiterwijk |
b8d704 |
#!/bin/bash -xe
|
|
Romain DEP |
78b01c |
pip install -r requirements-testing.txt
|
|
Farhaan Bukhsh |
8a8da1 |
python setup.py build
|
|
Patrick Uiterwijk |
b8d704 |
if [ ! -f /attachments/inited ];
|
|
Patrick Uiterwijk |
b8d704 |
then
|
|
Patrick Uiterwijk |
b8d704 |
echo "Giving Postgres time to start"
|
|
Patrick Uiterwijk |
b8d704 |
sleep 10
|
|
Patrick Uiterwijk |
b8d704 |
touch /attachments/inited
|
|
Clement Verna |
c4390f |
PAGURE_CONFIG=/code/dev/openshift.cfg python createdb.py --initial /code/dev/openshift_alembic.ini
|
|
Patrick Uiterwijk |
b8d704 |
else
|
|
Clement Verna |
c4390f |
alembic --config /code/dev/openshift_alembic.ini upgrade head
|
|
Patrick Uiterwijk |
b8d704 |
fi
|
|
Patrick Uiterwijk |
b8d704 |
|
|
Clement Verna |
c4390f |
exec /usr/bin/python /code/runserver.py --host 0.0.0.0 --config /code/dev/openshift.cfg
|