mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
Docker permissions changes
This commit is contained in:
@@ -7,6 +7,14 @@ RUN mkdir /files/static
|
|||||||
RUN mkdir /files/media
|
RUN mkdir /files/media
|
||||||
RUN mkdir /files/cache/mixes
|
RUN mkdir /files/cache/mixes
|
||||||
RUN mkdir /files/cache/waveforms
|
RUN mkdir /files/cache/waveforms
|
||||||
|
|
||||||
RUN touch /files/tmp/dss.log
|
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
|
WORKDIR /code
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ DEVELOPMENT = DEBUG
|
|||||||
# AUTH_USER_MODEL = 'spa.UserProfile'
|
# AUTH_USER_MODEL = 'spa.UserProfile'
|
||||||
|
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
VERSION = '3.0.1'
|
VERSION = '3.0.2'
|
||||||
|
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
('Fergal Moran', 'fergal.moran@gmail.com'),
|
('Fergal Moran', 'fergal.moran@gmail.com'),
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
|
chmod 777 /files/tmp/dss.log
|
||||||
|
|
||||||
touch /srv/logs/gunicorn.log
|
touch /srv/logs/gunicorn.log
|
||||||
touch /srv/logs/access.log
|
touch /srv/logs/access.log
|
||||||
tail -n 0 -f /srv/logs/*.log &
|
tail -n 0 -f /srv/logs/*.log &
|
||||||
@@ -12,4 +14,4 @@ exec gunicorn dss.wsgi:application \
|
|||||||
--log-level=info \
|
--log-level=info \
|
||||||
--log-file=/srv/logs/gunicorn.log \
|
--log-file=/srv/logs/gunicorn.log \
|
||||||
--access-logfile=/srv/logs/access.log \
|
--access-logfile=/srv/logs/access.log \
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user