From 1eb24182f3aa52108546f0cacd17e52e54a3a57c Mon Sep 17 00:00:00 2001 From: zuber Date: Tue, 6 Oct 2009 13:39:37 +0200 Subject: [PATCH] =?utf8?q?Dodanie=20fabfile=20pozwalaj=C4=85ce=20na=20wdro?= =?utf8?q?=C5=BCenie=20nowej=20wersji=20projektu=20na=20stigma=20(przy=20u?= =?utf8?q?=C5=BCyciu=20Fabric).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- fabfile.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fabfile.py diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 00000000..1cf26790 --- /dev/null +++ b/fabfile.py @@ -0,0 +1,11 @@ +from fabric.api import run, env, cd + +def staging(): + '''Add staging server to hosts''' + env.hosts += ['platforma@stigma.nowoczesnapolska.org.pl:2222'] + +def deploy(): + '''Deploy server''' + with cd('platforma'): + run('git pull') + run('./project/manage.py syncdb') -- 2.20.1