Browse Source

add fabfile.py

master
j 14 years ago
parent
commit
e0f2834690
  1. 19
      fabfile.py
  2. 1
      index.html

19
fabfile.py

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

1
index.html

@ -1 +0,0 @@
2010-04-15.html
Loading…
Cancel
Save