Commits

Anonymous committed 08a11d7

fixed gunicorn log directory permission and ownership

Comments (0)

Files changed (1)

fagungis/tasks.py

     sudo('mkdir -p %(projects_path)s' % env)
     # sudo('mkdir -p %(django_user_home)s/logs/nginx' % env)  # Not used
     sudo('mkdir -p %s' % dirname(env.gunicorn_logfile))
+    sudo('chown %s %s' % (env.django_user, dirname(env.gunicorn_logfile)))
+    sudo('chmod -R 775 %s' % dirname(env.gunicorn_logfile))
     sudo('mkdir -p %s' % dirname(env.supervisor_stdout_logfile))
     sudo('mkdir -p %s' % dirname(env.nginx_conf_file))
     sudo('mkdir -p %s' % dirname(env.supervisord_conf_file))