diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-01 12:04:53 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-01 12:04:53 +0200 |
commit | 11ef0c4348926169d70154b93201ebc0baa6e5b8 (patch) | |
tree | a37a3828112611afa96ad19aee6b9997ca3d2215 | |
parent | d229b1c4b664096240ea5fea63abf6512abfc632 (diff) | |
download | website-11ef0c4348926169d70154b93201ebc0baa6e5b8.tar.xz |
Use Fabric for deploying
-rw-r--r-- | fabfile.py | 10 |
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") |