try to fix permission

This commit is contained in:
virusdefender
2018-10-14 17:23:30 +08:00
parent 7aeec10391
commit 94baab8570
3 changed files with 7 additions and 6 deletions

View File

@@ -59,7 +59,9 @@ do
sleep 8
done
addgroup -g 12003 spj
adduser -u 12000 -S -G spj server
chown -R nobody:nogroup $DATA $APP/dist
chmod -R 700 $DATA/test_case
chown -R server:spj $DATA $APP/dist
chmod 710 $DATA/test_case
exec supervisord -c /app/deploy/supervisord.conf

View File

@@ -28,9 +28,8 @@ stopwaitsecs = 5
killasgroup=true
[program:gunicorn]
command=sh -c "gunicorn oj.wsgi --user nobody -b 127.0.0.1:8080 --reload -w `grep -c ^processor /proc/cpuinfo`"
command=sh -c "gunicorn oj.wsgi --user server --group spj -b 127.0.0.1:8080 --reload -w `grep -c ^processor /proc/cpuinfo`"
directory=/app/
user=nobody
stdout_logfile=/data/log/gunicorn.log
stderr_logfile=/data/log/gunicorn.log
autostart=true