update script
Project description
What is iw.updatezope ?
This package is used to upgrade a version with a new buildout.
>>> clean_buildout() >>> ls(buildout) bin
How to use iw.updatezope ?
Given a tarball you have previously prepared with iw.releaser, you can use iw.updatezope to practice a safe upgrade:
>>> from iw.updatezope.update_zope import main >>> main(my_tarball, buildout) Starting deployement Copying the tarball to the distant server Stopping Zope Making a backup Deploying... Relaunching >>> ls(buildout) DEPLOYED.txt bin
You can even do it through ssh, as long as your user has the rights, and the proper environement:
>>> clean_buildout() >>> main(my_tarball, buildout, '127.0.0.1') Starting deployement Copying the tarball to the distant server Stopping Zope Making a backup Deploying... Relaunching
Be careful to have a ssh-key properly configured, otherwise you will have tons of password prompts here !