diff --git a/fabfile/__init__.py b/fabfile/__init__.py new file mode 100644 index 0000000..e2001c9 --- /dev/null +++ b/fabfile/__init__.py @@ -0,0 +1 @@ +from fabfile import * diff --git a/fabfile/fabfile.py b/fabfile/fabfile.py new file mode 100644 index 0000000..c849f7f --- /dev/null +++ b/fabfile/fabfile.py @@ -0,0 +1,17 @@ +from fabric.api import * + +env.user = "franciszek" +env.key_filename = "/home/daz/.ssh/jp2gmd_rsa" +env.hosts = ['papiezlubi.keba.by'] + +def prepare_deploy(): + #local("./manage.py test my_app") # TOPKEK: + local("git add -p && git commit") + local("git push") + + +def deploy(): + code_dir = '/home/franciszek/papiez_ipsum' + with cd(code_dir): + run("git pull") + #run("touch app.wsgi")