Sublime Text 3 和 Rails:管理远程服务器上的应用程序

Sublime Text 3 and Rails: manage an app on a remote server

我是 Sublime Text 的新手,最近在 Sublime Text 3 上发现了很棒的 SFTP plugin,它允许您使用本地文件夹并将其同步到远程服务器目录。 我有一些问题:

我的本地计算机运行 Windows 10,而我的远程服务器是 Ubuntu 16.04。 提前致谢

Is it possible to sync the folder automatically once files are created or deleted, either locally or remotely, instead of clicking everytime on Sync Local -> Remote or viceversa?

是的,但仅限于本地更改的文件。检查 upload_on_save.

Is it possible to launch rails or rake commands from the Sublime console to the remote server and after that sync the local folder contents automatically?

您不能使用 FTP 客户端 运行 这样的命令。为此,您需要通过 SSH 访问服务器。

解决方法是在您的服务器上设置一个侦听器,当文件发生更改时将触发 rails 命令。