summaryrefslogtreecommitdiffstats
path: root/fabfile.py
blob: 198947c349f15c7d66824225f52537d97dca3539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from fabric.api import run, cd, env, task

env.hosts = ['theos.kyriasis.com']
code_dir = 'code/website'


@task(default=True)
def deploy():
    pull()
    make()


@task
def pull():
    with cd(code_dir):
        run("git pull")


@task
def make():
    with cd(code_dir):
        run("make")