symposion_app/docker/deploy_with_sqlite.sh

17 lines
1 KiB
Bash
Raw Normal View History

2017-05-07 06:37:26 +00:00
#!/bin/bash
/usr/local/bin/python /app/symposion_app/manage.py migrate
2018-09-29 19:56:30 +00:00
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{conference,proposal_base,sites,flatpages}.json
2018-09-29 06:17:01 +00:00
/usr/local/bin/python /app/symposion_app/manage.py loaddata /app/symposion_app/fixtures/{2019_groups,2019_registrasion,2019_schedule,2019_sitetree,2019_flatpages}.json
2018-09-29 04:46:59 +00:00
/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