Still can't get this right...

master
daz 2013-11-26 23:07:15 +01:00
parent 6de1d5a343
commit e33ddce131
2 changed files with 18 additions and 0 deletions

1
fabfile/__init__.py Normal file
View File

@ -0,0 +1 @@
from fabfile import *

17
fabfile/fabfile.py vendored Normal file
View File

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