将svn存储库更改直接上传到生产服务器? [英] Uploading svn repository changes directly to a Production Server?

查看:127
本文介绍了将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)?

我的意思是有一种方法,我可以做到没有EXPORT->然后手动复制粘贴到生产服务器...

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?

任何陷阱?

感谢

推荐答案

一个选项(如果你不想在你的生产站点中有.svn子目录)是做磁盘上不同区域的检查,然后定期更新,然后<$使用诸如

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 as

rsync -a --exclude='*/.svn/*' checkout_dir site_dir

svn更新 rsync 命令将运行速度非常快,相比之下每一个完整的 svn export 时间。

The svn update and rsync commands will run very quickly compared to doing a full svn export every time.

这篇关于将svn存储库更改直接上传到生产服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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