Using remote server in phpstorm [closed]

南笙酒味 提交于 2019-12-22 03:25:26

问题


I currently use Komodo and work directly off a remote server. I have just discovered phpstorm and I want to start giving this a go.

My question is, how can I work off a remote server like in Komodo? I really couldn't understand how to do it!


回答1:


As @LazyOne commented, it's not possible right now. You can vote for the related feature request.




回答2:


PhpStorm (as of 7.1) does not support working directly on a remote server.

You should vote for the feature here as @CrazyCoder mentioned.


A temporary alternative for SFTP

You can use a SSHFS mount to work directly on files on a remote server. It isn't ideal, but I found it works ok.

I use the follow command and settings (on a mac).

To mount:

sshfs -o IdentityFile=~/.ssh/id_rsa root@xxx.xxx.xxx.xxx:/ ~/sshfs_mounts/example -oauto_cache,reconnect,defer_permissions,noappledouble,volname=example

To unmount:

umount ~/sshfs_mounts/example

For more info see http://benohead.com/mac-os-x-use-sshfs-to-mount-a-remote-directory-as-a-volume/




回答3:


phpstorm has two very useful features to work with remote servers.

  1. when you commit, it can automatically deploy/upload to the remote location (sftp, ftp).
  2. when you commit you can also push to remote location git or other vcs.

It is correct as mentioned, phpstorm needs the local copies of the code aswell.



来源:https://stackoverflow.com/questions/14310339/using-remote-server-in-phpstorm

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