add fabfile.py

This commit is contained in:
j 2010-03-31 16:33:47 +02:00
parent a9503a9dc6
commit e0f2834690
2 changed files with 19 additions and 1 deletions

19
fabfile.py vendored Normal file
View File

@ -0,0 +1,19 @@
#this is a fabfile, use it with fab from http://fabfile.org/
#
# deploy changes:
# fab production deploy
#
from os.path import join
from fabric.api import run, local, sudo, put, env
env.project_name='newsletter'
def production():
env.hosts = ['pad.ma', ]
env.project_root = '/srv/%(project_name)s'%env
def deploy():
local('bzr push bzr+ssh://%(host)s%(project_root)s'%env)
run('cd %(project_root)s;bzr update;python update.py'%env)

View File

@ -1 +0,0 @@
2010-04-15.html