将 svn 存储库更改直接上传到生产服务器?

发布于 2024-10-02 04:09:13 字数 170 浏览 0 评论 0原文

我是否可以将我的更改从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甚是思念 2024-10-09 04:09:13

一种选择(如果您不想在生产站点中拥有 .svn 子目录)是签出到磁盘上的不同区域,然后定期更新,然后rsync将其跨到使用 svn updatersync 命令之类的生产站点

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

与每次执行完整的 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 as

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

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

笑饮青盏花 2024-10-09 04:09:13

我假设您当前正在将文件 svn export 到您的服务器...如果是这种情况,您可以在生产计算机上仅使用 svn checkout当您对存储库进行更改时,请执行 svn up ,这样只会同步您已更改的文件。如果您选择这条路线,那么通过 Web 服务器的配置(假设这是一个 Web 应用程序)限制对任何 .svn 目录的访问当然很重要。

请参阅这篇 SO 帖子以获得更好的解释。

I assume you're currently svn exporting your files to your server... if that's the case, you could instead just svn checkout on your production machine and svn 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文