如何使用基于 SVN 的子项目为 zc.buildout 编写 buildout.cfg

发布于 2024-12-09 07:08:43 字数 210 浏览 2 评论 0原文

我想为生产使用 zc.buildout 配置。就我而言,我有来自两个独立 SVN 存储库的两个子项目。我想将它们部署到同一个网站中。基本上,这是两个将进入同一网络服务器的子站点。我可以在我的电脑上手动将其组合在一起,但我想使用构建。我该怎么做?我突然想到,我需要首先从 SVN 获取两个站点的最新版本(将它们放在哪里?)接下来,在每个子项目上运行构建脚本???接下来,在主项目中运行构建脚本???是这样吗?

I want to make an zc.buildout configuration for production use. In my case, I have two sub-projects from two separate SVN repositories. I want to deploy these into the same web site. Basically, these are two sub-sites that will go into the same web server. I can manually put this together on my PC, but I'd like to use buildout. How do I do this? It strikes me that I need to first get the latest version of the two sites from SVN (put them where?) Next, run the buildout script on each of the sub-projects??? Next, run the buildout script in the master project??? Is that right?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菊凝晚露 2024-12-16 07:08:43

试试mr.developer,它可以查看并在构建期间自动更新您的 svn 项目。

类似于:

[buildout]
extensions = mr.developer
auto-checkout =
  foo
  bar
parts = baaz

[sources]
foo = svn https://svn.foo.com/trunk/
bar = svn https://svn.bar.org/trunk/

[baaz]
recipe = zc.recipe.egg
eggs = 
  foo
  bar

注意,这不是一个完整的工作示例,只是一个通用的构建布局。

Try your luck with mr.developer, it can check out and update your svn projects during buildout automatically.

Something like:

[buildout]
extensions = mr.developer
auto-checkout =
  foo
  bar
parts = baaz

[sources]
foo = svn https://svn.foo.com/trunk/
bar = svn https://svn.bar.org/trunk/

[baaz]
recipe = zc.recipe.egg
eggs = 
  foo
  bar

Note, this is not a complete working example, just a general buildout layout.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文