将代码文件同步到远程服务器的最佳方法是什么?

发布于 2024-12-01 09:47:39 字数 339 浏览 5 评论 0原文

目前我正在维护一个 django Web 应用程序,并且我通过 ssh 使用 rsync 在我的文件和编辑之间同步,使用 www-data 用户。

然后我重新加载 apache 服务器。

我尝试过 git,但在推送时遇到很多问题,启动 bare git 也无济于事。

除了从源中删除文件之外,rsync 的工作非常好。

你用什么?

在服务器和本地上使用操作系统:Ubuntu 10.04 LTS x64

currently I am maintaining a django web application and I am using rsync via ssh to sync between my files and edits, using www-data user.

Then I reload the apache server.

I have tried git but had many problems on pushing, initiating a bare git couldn't help either.

Apart from deleted files from the source, rsync does it's job quite good.

What do you use?

Using OS: Ubuntu 10.04 LTS x64 on both server and local

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

坏尐絯 2024-12-08 09:47:39

我使用 Mercurial,它真的很容易在本地运行,并且很容易在不同的“服务器”之间推送更改。

你没有说你正在使用什么操作系统。我正在使用 Windows 和 tortoiseHg。我还使用 Visual Studio 的 VisualHg 插件

I use mercurial, it's really easy to get running locally and very easy to push changes between different "servers".

you don't say what O/S you're using. I'm using Windows with tortoiseHg. I also use the VisualHg add-in for Visual Studio

倦话 2024-12-08 09:47:39

当谈到在机器之间同步文件时,我使用 BitTorrent Sync。适用于每个主要平台,并且配置非常容易。它甚至适用于移动设备。

查看 http://www.bittorrent.com/sync

When it comes to sync files between machines, I use BitTorrent Sync. Works on every major platform and it is super easy to configure. It even works for mobile devices.

Check out http://www.bittorrent.com/sync

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