将代码文件同步到远程服务器的最佳方法是什么?
目前我正在维护一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 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
当谈到在机器之间同步文件时,我使用
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