Using remote server in phpstorm [closed]

2019-04-20 13:31发布

问题:

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.