aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fabfile.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/fabfile.py b/fabfile.py
new file mode 100644
index 0000000..41f7ddc
--- /dev/null
+++ b/fabfile.py
@@ -0,0 +1,13 @@
+from fabric.api import *
+
+env.hosts = ['lolnet.org:20002']
+env.shell = "/usr/local/bin/bash -c"
+env.path = "/usr/local/bin/:/usr/bin/"
+
+def deploy():
+ with cd('/usr/local/www/notmyidea.org/ihatemoney'):
+ sudo('git pull', user="www")
+ sudo('supervisorctl restart ihatemoney')
+
+def whoami():
+ run('/usr/bin/whoami')