Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix issue with missing directory in Ubuntu 11.04

  • Loading branch information...
commit 8cac5a7ed054cc8063e04e6b9aedca1814907b06 1 parent bb2d3a3
@bretth authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 woven/webservers.py
View
4 woven/webservers.py
@@ -197,7 +197,9 @@ def deploy_webconf():
deployed += _deploy_webconf('/etc/nginx/sites-available','nginx-template.txt')
elif 'gunicorn' in get_packages():
deployed += _deploy_webconf('/etc/nginx/sites-available','nginx-gunicorn-template.txt')
-
+
+ if not exists('/var/www/nginx-default'):
+ sudo('mkdir /var/www/nginx-default')
upload_template('woven/maintenance.html','/var/www/nginx-default/maintenance.html',use_sudo=True)
sudo('chmod ugo+r /var/www/nginx-default/maintenance.html')
else:
Please sign in to comment.
Something went wrong with that request. Please try again.