From 11ef0c4348926169d70154b93201ebc0baa6e5b8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 1 Apr 2015 12:04:53 +0200 Subject: Use Fabric for deploying --- fabfile.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 fabfile.py 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") -- cgit v1.2.3-70-g09d2