Autodeploy the new sqlite database
This commit is contained in:
parent
8cf348acb5
commit
5d29f6c475
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,2 @@
|
||||||
docker
|
|
||||||
.git
|
.git
|
||||||
ve
|
ve
|
||||||
|
|
|
@ -26,4 +26,4 @@ RUN set -ex \
|
||||||
COPY . /app/symposion_app
|
COPY . /app/symposion_app
|
||||||
|
|
||||||
WORKDIR /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
5
docker/deploy_with_sqlite.sh
Executable 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
|
Loading…
Reference in a new issue