开发者

Upload file on every save with Rsync

Im using Eclipse PDT(Ubuntu 10.10) for web development and successfully uploading changed files with Rsync manually.

~$ rsync -e ssh -av /home/goksel/Sites/test goksel@goksel.com:test
sending incremental file list
test/
test/index.php

Is there a way to make this command work on every save?

I know that I can do t开发者_JAVA技巧his by using Aptana's Sync tool but somehow it works very slow.


There are 2 options available. If you right-click on the project you can add an external builder, which can be an ant file or a program. That will run on every file change.

The second option is to use something like Remote System Explorer from Target Management: http://www.eclipse.org/tm/ A lot of users use this when working on projects (like PHP) that they want synced up to a remote system.


The problem with using RSE is that it conflicts with other Team connections such as subversion. RSE was also very slow and worked in batches (just like sending a SVN changeset to the SVN server).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜