简体   繁体   English

PhpStorm的“真正的远程” FTP项目

[英]“Real remote” FTP project with PhpStorm

Presently I'm using phpDesigner 8. I like, it can create a "real remote" FTP project, phpDesigner not downloading all project files to local, it shows me the remote tree, and I download only the file, that I'd like to edit. 目前,我正在使用phpDesigner8。我喜欢,它可以创建一个“真正的远程” FTP项目,phpDesigner不会将所有项目文件下载到本地,而是显示远程树,而我只下载我想要的文件编辑。 When I save, the file automatically uploaded with FTP. 保存后,文件自动通过FTP上传。

I'd like to do this with PhpStorm. 我想用PhpStorm做到这一点。 I tried "New Project from Existing Files", then "Web server is on remote host, files are accessible via FTP/SFTP/FTPS". 我尝试了“从现有文件新建项目”,然后“ Web服务器在远程主机上,可以通过FTP / SFTP / FTPS访问文件”。 I turn on Tools/Deployment/Automatic Upload (always), and PhpStorm immediately uploads the saved files via FTP. 我打开工具/部署/自动上传(总是),然后PhpStorm立即通过FTP上传已保存的文件。 This good. 这个好。 But I don't need a local copy any of the remote files. 但我不需要本地复制任何远程文件。 I need to download the remote files only to editor, not to locally, and saves to remote. 我只需要将远程文件下载到编辑器,而不是本地,然后保存到远程。

Is there any way to do this? 有什么办法吗?

Is there any way to do this? 有什么办法吗?

Well ... you cannot create 100% Remote FTP project -- because you still have to create actual project ... which has to be local. 嗯...您不能创建100%远程FTP项目-因为您仍然必须创建实际的项目...必须是本地的。 It can be completely empty (no actual project files) but it will still contain config files in .idea subfolder (eg your FTP details). 它可以完全为空(没有实际的项目文件),但仍将在.idea子文件夹中包含配置文件(例如,您的FTP详细信息)。

But yes -- once such empty project created -- just go to Settings/Preferences and configure Deployment. 但是可以,一旦创建了这样一个空项目,只需转到Settings/Preferences并配置“部署”。

Once it's properly set up -- go browse Remote Host and choose to edit file remotely -- IDE will download that file in temp location and upload it back as needed -- https://blog.jetbrains.com/phpstorm/2015/04/remote-edit-in-phpstorm-9-eap/ . 正确设置后-浏览远程主机并选择远程编辑文件-IDE将在临时位置下载该文件并根据需要将其上传回-https: //blog.jetbrains.com/phpstorm/2015/04 / remote-edit-in-phpstorm-9-eap /

NOTE: missing stuff when editing remotely -- https://stackoverflow.com/a/36850634/783119 注意:远程编辑时缺少内容-https: //stackoverflow.com/a/36850634/783119

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM