使用Rsync在每次保存时上传文件 [英] Upload file on every save with Rsync
问题描述
我使用Eclipse PDT(Ubuntu 10.10)进行Web开发,并使用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?
我知道我可以通过使用Aptana的同步工具来做到这一点,但是以某种方式它的运行速度非常慢。
I know that I can do this by using Aptana's Sync tool but somehow it works very slow.
推荐答案
有2个可用选项。如果右键单击项目,则可以添加一个外部构建器,该构建器可以是ant文件或程序。
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.
第二个选项是使用目标管理中的远程系统资源管理器之类的方法: http://www.eclipse.org/tm/ 许多用户在处理要同步到远程的项目(如PHP)时都使用此功能系统。
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.
这篇关于使用Rsync在每次保存时上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!