自动文件上传

发布于 2024-07-25 07:13:16 字数 679 浏览 5 评论 0原文

有什么办法,任何能够自动上传文件的免费软件? 假设我使用我最喜欢的 IDE 在本地计算机上编辑 php 代码。 我不会改变我的IDE,它很棒。 我想要能够检测到项目目录中的文件发生更改并使用 FTP/SFTP 将其上传到远程服务器的东西。 就是这样 - 就这么简单。

我已经尝试过:

FTPDrive + FileSync Eclipse 插件 - 它非常慢,经常上传所有文件,在 Vista 和 Windows 7 下工作有问题。

WinSCP 自动同步 - 再次出现错误,拒绝随机上传文件。 如果能正常工作那就最好了。

Eclipse 的本机 SFTP 支持 - 它毫无用处! 您不能使用具有此功能的 PDT 项目。 没有项目的 PDT 并不比 Notepad++ 好。

Aptana FTP 功能。 比手动还差! 天哪,太糟糕了!

在windows下运行我自己的PHP/MySQL服务器。 首先,我花了很长时间才设置它,然后,它不能完全按照我的生产环境运行 - 我无法正确测试我的代码。

应该如何运作? 我在这里更改文件,然后将其上传到那里。 如果它安静地放在托盘中并且仅在发生上传错误时打扰我,那就最好了。

好吧,如果不是免费的,也许至少有便宜的东西?

如果没有类似的东西,有没有类似 FTPDrive 的东西?

Is there any way, any free software capable of automatic file upload? Let's say I edit php code on my local computer with my favorite IDE. I won't change my IDE, it's great. I want something that would detect a file is changed in my project directory and upload it with FTP/SFTP onto remote server. That's it - just that simple.

What I've already tried:

FTPDrive + FileSync Eclipse Plugin - it's quite slow, uploads ALL the files way to often, works buggy under Vista and Windows 7.

WinSCP automatic synchronization - bugs again, refuses to upload files randomly. Would be the best if it worked right.

Eclipse's native SFTP support - it's USELESS! You cannot use PDT projects with this feature. PDT without projects is no better than Notepad++.

Aptana FTP feature. It's worse than manual! Gawd, it sucks!

Running my own PHP/MySQL server under windows. First, it took me ages to set it up, then, it didn't work EXACTLY as my production environment - I hadn't been able to test my code correctly.

How it should work? I change file here, and it's uploaded there. It would be best, if it sit quietly in tray and bother me only if upload error occured.

Ok, if it's not free, maybe there's something cheap at least?

If there's nothing like it, is there something like FTPDrive?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半步萧音过轻尘 2024-08-01 07:13:16

rsync 完全符合您的要求。

好吧,几乎:它不会监视您的文件系统并自动上传文件 - 您必须设置一个任务来每分钟或其他时间运行它。 但它确实只有效地上传更改。 如果您使用的是 Linux,lsyncd 会执行监视部分并驱动 rsync 执行高效的操作上传部分。

rsync does exactly what you're asking.

Well, almost: it doesn't watch your filesystem and automatically upload files - you'd have to set up a task to run it every minute or whatever. But it does efficiently upload only the changes. If you're on Linux, lsyncd does the watching part and drives rsync to do the efficient upload part.

友欢 2024-08-01 07:13:16

在 Rails 世界中,我们倾向于使用源代码控制和 vlad 或 capistrano 等部署工具。 它比 FTP 更安全、更一致。 这是有关如何将其与 svn 和 php 一起使用的指南 http://www.simplisticcomplexity.com/2006/08/16/automated-php-deployment-with-capistrano/

您确实应该尝试让您的开发服务器在您的个人计算机上运行。 这是一种更好的方法,并且值得为使其发挥作用而付出最初的痛苦。 某处有关于这方面的很好的教程。

In the rails world, we tend to use source control and a deployment tool like vlad or capistrano. It's a bit safer and more consistent than FTP. This is a guide on how to use it with svn and php http://www.simplisticcomplexity.com/2006/08/16/automated-php-deployment-with-capistrano/.

You really should try to get your development server running on your personal machine. It's a much better way and it is worth the initial pain of trying to make it work. There are good tutorials on that out there somewhere.

水晶透心 2024-08-01 07:13:16

您可以使用 WebDriveExpanDrive,将完整的远程目录挂载为本地磁盘驱动器,并直接在服务器上编辑您的文件。 然而,这在很大程度上取决于您的连接以及您的工具的编写方式。 另一种方法可能是使用其中一个工具并与另一个工具异步同步所有更改。

You can use WebDrive or ExpanDrive, mount a complete remote directory as a local disk drive and directly edit your files on the server. However this highly depends on your connection and how your tools are written. Another approach could be to use one of these tools and with another tool sync all the changes asynchronously.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文