symposion_app/docker/deploy_with_sqlite.sh
James Polley 5431497328 Update dev instance deploy script
- We have a flatpages fixture to add in
- Need to let the script exist in the docker context so it can be run
2018-06-09 11:16:48 +10:00

11 lines
624 B
Bash
Executable file

#!/bin/bash
/usr/local/bin/python /app/symposion_app/manage.py migrate
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{conference,proposal_base,sites,sitetree,flatpages}.json
/usr/local/bin/python /app/symposion_app/manage.py create_review_permissions
#/usr/local/bin/python /app/symposion_app/manage.py populate_inventory
if [ $DATABASE_URL == "sqlite:////tmp/symposion.sqlite" ]; then
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/admin_users.json
fi
exec /usr/local/bin/uwsgi --http-socket 0.0.0.0:8000 --wsgi-file pinaxcon/wsgi.py