开发者

Sync new version with FTP to server?

I'm having problems updating a new version of a pro开发者_StackOverflow社区ject to the remote web server. The project contains about 500 MB of data (mostly graphics and javascript libraries that don't change very often). Currently I do this with WS-FTP with the sync option, but this is very slow, since it has to compare every local file with the remote one, to see if anything has changed.

I use SVN on my local server for version control. Would you use SVN on a production server too? Or are there other kind of protocols that allow fast updates when only a few files have changed?

I use Eclipse (on Windows), so maybe there's a plugin that can keep track of all the changed files and use FTP to deploy them??


You might want to try using rsync.

A trivial search shows that it has an Eclipse plugin, too.


I use Subversion in production environments too. As long as you modify your server settings to not allow .svn metadata to be served, you should be fine. Also, keeping development and production configurations separate and using tags helps keep thing clean.


If you're comfortable with Subversion, go with it. I wouldn't run a Subversion server on that machine :) but I'd definitely be happy with ssh website@remotehost svn pull.

rsync(1) is the usual answer; it is an excellent program, and pretty easy to use:

rsync -avc -P /path/to/web/content/ website@remotehost:/path/to/content/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜