From e0f283469009c27a53fb84e06ccb3237856f07d2 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 31 Mar 2010 16:33:47 +0200 Subject: [PATCH] add fabfile.py --- fabfile.py | 19 +++++++++++++++++++ index.html | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 fabfile.py delete mode 120000 index.html diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000..b51f070 --- /dev/null +++ b/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) + diff --git a/index.html b/index.html deleted file mode 120000 index 600daa8..0000000 --- a/index.html +++ /dev/null @@ -1 +0,0 @@ -2010-04-15.html \ No newline at end of file