Upload file on every save with Rsync

旧城冷巷雨未停 提交于 2019-12-04 04:28:19

问题


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 this by using Aptana's Sync tool but somehow it works very slow.


回答1:


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.




回答2:


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).



来源:https://stackoverflow.com/questions/5737215/upload-file-on-every-save-with-rsync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!