dev.domain.com 使用 subversion 头代码?
你好颠覆专家,
我正在尝试通过 SVN 将我的网站分为生产和开发。该网站的所有代码都存储在名为“Application”的文件夹中。我的目标是设置一个 SVN 服务器,其中所有应用程序(Php)代码都在主干中。
这样,我的开发服务器 dev.mydomain.com 将直接链接到最新的主干(头)代码。这可能吗?
我通过将 svn 代码签入一个文件夹来让系统工作,然后将开发服务器链接到该文件夹。但是,这种方法并不理想,因为每次有人提交更改时,我都需要手动将最新代码签出到开发服务器。我希望这个文件夹可以自动更新...
如果有人有任何想法,我将非常感激。
谢谢, 标记
Hello subversion experts,
I'm attempting to split up my website between production and development through SVN. All the code for the website is stored in a folder called Application. My goal is to setup an SVN server with all the Application (Php) code in trunk.
With this, my development server, dev.mydomain.com, would link directly to the latest trunk (head) code. Is this possible?
I sort-of have the system working by checking svn code out to a folder which I then link the development server to. However, this approach is not ideal in that I nee to manually checkout the latest code to the development server each time anybody commits changes. I wish this folder could be updated automatically...
If anybody has any ideas, I would be very grateful.
Thanks,
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以实现 提交后挂钩< /a> 在 SVN 服务器上,这将触发开发服务器上的
svn update
,以便其工作副本始终是最新的。或者您可以使用一个简单的 cron 作业,每 x 分钟执行一次 svn update 。
You could implement a post-commit hook on the SVN server that would trigger an
svn update
on the development server, so that its working copy is always up to date.Or you could use a simple cron job that would do a
svn update
every x minutes.