Awesome, that's exactly the kind of solution I was looking for. That will work perfectly.
Thanks! On May 27, 4:24 pm, pbreit <[email protected]> wrote: > For doing updates, this is all you need: > > from fabric.api import * > > def prod(): > env.hosts = ['1.1.1.1'] > env.user = 'user' > env.password = 'password' > > def update(): > run('cd /var/web2py/applications/init; hg pull') > run('cd /var/web2py/applications/init; hg update') > > Then at the command line: $ fab prod update

