Adding fabfile.py
authorAndrew Otto <acotto@gmail.com>
Tue, 8 May 2012 20:19:07 +0000 (16:19 -0400)
committerAndrew Otto <acotto@gmail.com>
Tue, 8 May 2012 20:19:07 +0000 (16:19 -0400)
fabfile.py [new file with mode: 0644]

diff --git a/fabfile.py b/fabfile.py
new file mode 100644 (file)
index 0000000..a131926
--- /dev/null
@@ -0,0 +1,40 @@
+from fabric.api import *
+
+env.project_name = 'kraken-ui'
+
+env.roledefs = {
+    'test': ['less.ly'],
+    'production': ['reportcard2.pmtpa.wmflabs'],
+}
+
+
+
+@task
+def bundle():
+       """Builds and bundles static files in tmp/dist for deployment."""
+       pass
+
+@task
+def fix_permissions():
+       """Recursively fixes permissions on the deployment host."""
+       pass
+
+@task
+def update():
+       """Runs git pull on the deployment host."""
+       pass
+
+@task
+def distribute():
+       """Copies tmp/dist to deployment host."""
+       pass
+
+@task
+def restart_server():
+       """Restarts node.js server on the deployment host."""
+       pass
+
+@task
+def deploy():
+       """Full deployment of latest project"""
+       pass
\ No newline at end of file