您最喜欢使用SVN的Web应用程序部署工作流程? [英] What is your favorite web app deployment workflow with SVN?

查看:79
本文介绍了您最喜欢使用SVN的Web应用程序部署工作流程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在使用一个稍微复杂的部署设置,涉及一个远程SVN服务器,3个SVN分支,用于DEV,STAGE和PROD,通过补丁等来促进代码之间的代码。我不知道用什么方式部署在一个小的开发团队情况?

We are currently using a somewhat complicated deployment setup that involves a remote SVN server, 3 SVN branches for DEV, STAGE, and PROD, promoting code between them through patches, etc. I wonder what do you use for deployment in a small dev team situation?

推荐答案

发展中继线,以及生产部门的分支(生产)。

trunk for development, and a branch (production) for the production stuff.

在我的本地机器上,我有一个VirtualHost指向中继线分支,以测试我的更改。

On my local machine, I have a VirtualHost that points to the trunk branch, to test my changes.

任何提交到中继触发器一个提交钩子,执行svn导出并同步到在线服务器的开发网址 - 所以如果网站是stackoverflow.com,那么这个钩子会自动更新dev.stackoverflow.com

Any commit to trunk triggers a commit hook that does an svn export and sync to the online server's dev URL - so if the site is stackoverflow.com then this hook automatically updates dev.stackoverflow.com

然后我使用svnmerge将选定的修补程序从trunk到production在本地检出中合并。我的本地机器上再次有一个VirtualHost,指向生产分支。

Then I use svnmerge to merge selected patches from trunk to production in my local checkouts. I have a VirtualHost again on my local machine pointing to the production branch.

当我将合并的更改提交给生产分支时,SVN导出钩子再次更新生产现场)出口,网站是直播!

When I commit the merged changes to the production branch, again an SVN export hook updates the production (live) export and the site is live!

这篇关于您最喜欢使用SVN的Web应用程序部署工作流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆