symposion_app/docker/deploy_with_sqlite.sh
James Polley fa5885a766 Add a test fixture which creates a user for testing the CFP
Also add a single proposal which can be reviewed.
2018-06-27 19:13:00 +10:00

14 lines
866 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 [ -e /configs/auth/auth.json ]; then
/usr/local/bin/python /app/symposion_app/manage.py loaddata /configs/auth/auth.json
elif [ $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
/usr/local/bin/python /app/symposion_app/manage.py loaddata -v3 /app/symposion_app/fixtures/cfp_teams_test.json
exec /usr/local/bin/uwsgi --http-socket 0.0.0.0:8000 --wsgi-file pinaxcon/wsgi.py