Upload file on every save with Rsync(使用 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 的 Sync 工具来做到这一点,但不知何故它工作得非常慢.
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 在每次保存时上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 Rsync 在每次保存时上传文件


- Eclipse 的最佳 XML 编辑器 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- 转换 ldap 日期 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- 获取数字的最后一位 2022-01-01