summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-01 12:04:53 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-01 12:04:53 +0200
commit11ef0c4348926169d70154b93201ebc0baa6e5b8 (patch)
treea37a3828112611afa96ad19aee6b9997ca3d2215
parentd229b1c4b664096240ea5fea63abf6512abfc632 (diff)
downloadwebsite-11ef0c4348926169d70154b93201ebc0baa6e5b8.tar.xz
Use Fabric for deploying
-rw-r--r--fabfile.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fabfile.py b/fabfile.py
new file mode 100644
index 0000000..335105e
--- /dev/null
+++ b/fabfile.py
@@ -0,0 +1,10 @@
+from fabric.api import run, cd, env, task
+
+env.hosts = ['theos.kyriasis.com']
+
+@task(default=True)
+def deploy():
+ code_dir = 'code/website'
+ with cd(code_dir):
+ run("git pull")
+ run("make")