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")