You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
454 B

#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)