跳转到主要内容

更新脚本

项目描述

什么是iw.updatezope?

此包用于使用新的buildout升级版本。

>>> clean_buildout()
>>> ls(buildout)
bin

如何使用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-key,否则您将在这里遇到大量的密码提示!

项目详情


支持