From e33ddce131db3e3cd2439fe93e87d91f1789f3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dzikie=20dro=C5=BCd=C5=BCe?= Date: Tue, 26 Nov 2013 23:07:15 +0100 Subject: [PATCH] Still can't get this right... --- fabfile/__init__.py | 1 + fabfile/fabfile.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 fabfile/__init__.py create mode 100644 fabfile/fabfile.py 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")