如何部署Subversion外部?(How to deploy Subversion externals?)

编程入门 行业动态 更新时间:2024-10-11 11:21:25
如何部署Subversion外部?(How to deploy Subversion externals?)

我们正在用SVN测试水域,Beanstalk作为主机。 我们的设置看起来像这样:

存储库: 模块

模块1 模块2 第3单元

存储库: 网站1

自定义网站代码 svn:对模块1的外部引用 svn:对模块2的外部引用

存储库: 网站2

自定义网站代码 svn:对模块2的外部引用 svn:对模块3的外部引用

Beanstalk具有内置的FTP部署工具。 在我的理想世界中,Beanstalk只会看到外部引用,并随着网站更改部署任何对模块的更改,但这不受支持,并且不会很快 。

自动部署网站1和网站2的方法是什么,以便更改外部模块?

其他SVN主机是否更好地支持部署外部?

如果可能的话,我想避免添加我们自己的构建/部署服务器。

We're testing the waters with SVN, with Beanstalk as a host. Our setup looks something like this:

Repository: Modules

Module 1 Module 2 Module 3

Repository: Website 1

Custom website code svn:External reference to Module 1 svn:External reference to Module 2

Repository: Website 2

Custom website code svn:External reference to Module 2 svn:External reference to Module 3

Beanstalk has built-in FTP deployment tools. In my ideal world, Beanstalk would just see the external references and deploy any changes to the modules along with the website changes, but this isn't supported and won't be anytime soon.

What's a good practice for automatically deploying Websites 1 and 2 in a way that changes to the external modules are included?

Do other SVN hosts have better support for deploying externals?

If possible, I'd like to avoid adding our own build/deploy server.

最满意答案

如果部署使用导出,那么这可能是有道理的; 我很确定SVN的最新版本也导出了外部,但早期版本没有。 也许你最好的选择是在你的部署服务器上检查有问题的存储库并从那里更新? 如果您使用分支和标记,您也可以在您的webroot上创建指向结帐中不同版本的符号链接。

If the deployment uses export, then that might make sense; I'm pretty sure the latest version of SVN also exports externals, but earlier versions did not. Perhaps your best bet would be to perform a checkout of the repository in question on your deployment server and update from there? If you use branches and tagging, you might also create symlinks to your webroot that point to different releases in the checkout.

更多推荐

本文发布于:2023-07-27 07:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1287094.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Subversion   deploy   externals

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!