From 58a185f1e60a9e09033a585580ff4e205ef1d0c9 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Wed, 21 Jan 2015 21:37:04 +0100 Subject: [PATCH] Friendly umask for static files --- fabfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index 138c457..d77de0c 100644 --- a/fabfile.py +++ b/fabfile.py @@ -56,7 +56,7 @@ def deploy(): with virtualenv(): run('git pull') # Get source run('pip install -r requirements.txt') # install deps in virtualenv - run('python manage.py collectstatic --noinput') # Collect static + run('umask 022; python manage.py collectstatic --noinput') # Collect static run('python manage.py migrate') # Run DB migrations # Reload gunicorn