将 svn 存储库更改直接上传到生产服务器?
我是否可以将我的更改从 svn 存储库直接上传到我的生产服务器(第二个副本包含所有数据作为原始副本,但用于测试目的)?
我的意思是有没有一种方法可以在不导出的情况下做到这一点->然后手动复制粘贴到生产服务器...
如果是,我该怎么做?
有什么陷阱吗?
谢谢
Is it possible that i could upload my changes from the svn repository directly to my production server(2nd copy containing all the data as origional copy but for testing purposes)?
I mean is there a way i could do it without EXPORT-> Then manually copy paste to production server...
If yes, how can i do that?
any pitfalls?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一种选择(如果您不想在生产站点中拥有 .svn 子目录)是签出到磁盘上的不同区域,然后定期更新,然后
rsync
将其跨到使用svn update
和rsync
命令之类的生产站点与每次执行完整的
svn export
相比,运行速度会非常快。One option (if you don't want to have the .svn subdirectories in your production site) is to do checkout to a different area on the disk, then update that periodically, and then
rsync
that across to the production site using a command such asThe
svn update
andrsync
commands will run very quickly compared to doing a fullsvn export
every time.我假设您当前正在将文件
svn export
到您的服务器...如果是这种情况,您可以在生产计算机上仅使用svn checkout
并当您对存储库进行更改时,请执行 svn up
,这样只会同步您已更改的文件。如果您选择这条路线,那么通过 Web 服务器的配置(假设这是一个 Web 应用程序)限制对任何.svn
目录的访问当然很重要。请参阅这篇 SO 帖子以获得更好的解释。
I assume you're currently
svn export
ing your files to your server... if that's the case, you could instead justsvn checkout
on your production machine andsvn up
when you've made changes to the repository, and that'll only sync the files you've changed. If you go this route, it's of course important to restrict access via your web server's configuration (assuming this is a web app) to any.svn
directories.See this SO post for a better explanation.