diff --git a/Dockerfile b/Dockerfile index fd64e60..947d87b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 + diff --git a/dss/settings.py b/dss/settings.py index 1d80e09..3072266 100644 --- a/dss/settings.py +++ b/dss/settings.py @@ -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'), diff --git a/run_web.sh b/run_web.sh index a2db8f4..680ecb9 100644 --- a/run_web.sh +++ b/run_web.sh @@ -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 \ - "$@" \ No newline at end of file + "$@"