Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow overriding env.hosts via -H argument

  • Loading branch information...
commit c15994651ac590fd07c234846fdcf5787dfce9ba 1 parent 5776548
Igor authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  fabfile.py
3  fabfile.py
View
@@ -3,7 +3,8 @@
from fabric.contrib.project import rsync_project
from fabric.contrib.files import exists
-env.hosts = ['www-data@igor.io']
+if not env.hosts:
+ env.hosts = ['www-data@igor.io']
project_name = 'igor.io'
target_dir = '/var/www/'+project_name
Please sign in to comment.
Something went wrong with that request. Please try again.