Autodeploy the new sqlite database

This commit is contained in:
Sachi King 2017-05-07 16:37:26 +10:00
parent 8cf348acb5
commit 5d29f6c475
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,2 @@
docker
.git
ve

View file

@ -26,4 +26,4 @@ RUN set -ex \
COPY . /app/symposion_app
WORKDIR /app/symposion_app
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["/app/symposion_app/docker/deploy_with_sqlite.sh"]

5
docker/deploy_with_sqlite.sh Executable file
View file

@ -0,0 +1,5 @@
#!/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
exec /usr/local/bin/python /app/symposion_app/manage.py runserver 0.0.0.0:8000