]> git.parisson.com Git - telemeta.git/commitdiff
set uwsgi uid and gid to www-data
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Jan 2016 12:15:34 +0000 (13:15 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Jan 2016 12:15:34 +0000 (13:15 +0100)
app/deploy/start_app.sh

index 18c1695ca9075d77f9c7067065e82cea5a5c1908..d6f8de52e2370936d73a051845464753ab2ac871 100644 (file)
@@ -11,6 +11,8 @@ port=8000
 processes=8
 threads=8
 autoreload=3
+uid='www-data'
+gid='www-data'
 
 # stating apps
 pip install redis
@@ -35,4 +37,7 @@ watchmedo shell-command --patterns="*.js;*.css" --recursive \
     --command='python '$manage' collectstatic --noinput' $static &
 
 # app start
-uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master --processes $processes --threads $threads --py-autoreload $autoreload
+uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master \
+    --processes $processes --threads $threads \
+    --uid $uid --gid $gid \
+    --py-autoreload $autoreload