Changeset - 5d29f6c475b3
[Not reviewed]
0 2 1
Sachi King - 7 years ago 2017-05-07 08:40:55
nakato@nakato.io
Autodeploy the new sqlite database
3 files changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
.dockerignore
Show inline comments
 
docker
 
.git
 
ve
docker/Dockerfile
Show inline comments
...
 
@@ -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"]
docker/deploy_with_sqlite.sh
Show inline comments
 
new file 100755
 
#!/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
0 comments (0 inline, 0 general)