Files @ 62df4ec3de57
Branch filter:

Location: symposion_app/docker/deploy_with_sqlite.sh

James Polley
Allow flags for migrations

Switch Dockerfile from CMD to ENTRYPOINT so that flags can be passed
to the makemigrations command

This is required in cases where we need to use django's makemigrations
--merge to merge two migrations.
#!/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.json /app/symposion_app/fixtures/proposal_base.json /app/symposion_app/fixtures/sites.json /app/symposion_app/fixtures/sitetree.json
/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