更新脚本
iw.updatezope的Python项目详细描述
How to use iw.updatezope ?
给一个你之前用iw.releaser准备的tarball,你 可以使用iw.updatezope进行安全升级:
>>> 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
你甚至可以通过ssh来完成,只要你的用户有权限, 以及适当的环境:
>>> 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
请小心正确配置ssh密钥,否则您将 这里有很多密码提示!