Docker permissions changes

This commit is contained in:
Fergal Moran
2016-09-23 22:48:02 +01:00
parent 650c0ffdbb
commit d1b9fb674b
3 changed files with 12 additions and 2 deletions

View File

@@ -7,6 +7,14 @@ RUN mkdir /files/static
RUN mkdir /files/media
RUN mkdir /files/cache/mixes
RUN mkdir /files/cache/waveforms
RUN touch /files/tmp/dss.log
RUN chmod 777 /files/tmp/dss.log
RUN chmod 777 /files/cache -R
RUN chmod +x /code/bin/wav2png
RUN chmod +x /code/run_web.sh
RUN chmod +x /code/run_celery.sh
WORKDIR /code

View File

@@ -20,7 +20,7 @@ DEVELOPMENT = DEBUG
# AUTH_USER_MODEL = 'spa.UserProfile'
TEMPLATE_DEBUG = DEBUG
VERSION = '3.0.1'
VERSION = '3.0.2'
ADMINS = (
('Fergal Moran', 'fergal.moran@gmail.com'),

View File

@@ -1,6 +1,8 @@
#!/bin/bash
python manage.py migrate
chmod 777 /files/tmp/dss.log
touch /srv/logs/gunicorn.log
touch /srv/logs/access.log
tail -n 0 -f /srv/logs/*.log &
@@ -12,4 +14,4 @@ exec gunicorn dss.wsgi:application \
--log-level=info \
--log-file=/srv/logs/gunicorn.log \
--access-logfile=/srv/logs/access.log \
"$@"
"$@"