How to bind Remote Host to Project?

I have a number of Projects but can not figure our why some automatically link to their proper Remote Host and others require a manual selection.

Can I somehow assign a remote host to an existing project or is this only created if you create the project from remote files?

0
7 comments

Hi there,

Based on your description (which is not super clear for me) I guess you mean: why when uploading some will have default and another will ask to choose from?

If so: select and mark your deployment entry as Default for that project (Settings/Preferences | Deployment)

0
Avatar
Permanently deleted user

Thank you for the reply.

To clarify I can open projects by using file/open

In one case the Remote Host also opens with the project, properly selecting the files

In the other case the project opens but there is no bound FTP/Remote Host. I then have to manually select from those FTP sites I have created prior.

Sorry but on my Mac (latest version of PHPStorm) I don't have a Settings in the upper toolbar. I do have PHPStorm/Preferences/ then in that area I have Build, Execution, Deployment/Deployment  which shows the proper FTP account selected under Connections. I also have "Visible only for this project" ticked which now removes that connection from the list of available manual choices. BUT still no automatic opening of that Remote Host when I open that Project.

I could probably find the association in the .ideas directory xml file but would prefer to know how to set this link/binding via the PHPStorm interface.

0

>Sorry but on my Mac (latest version of PHPStorm) I don't have a Settings in the upper toolbar. I do have PHPStorm/Preferences/ then in that area I have Build, Execution, Deployment/Deployment which shows the proper FTP account selected under Connections.

Yes, that is the right settings screen.

Please show the screenshots that would illustrate your issue: when it works and when it does not. Ideally they should show the same (when it works and when it does not). You can redact private info (project names etc).

Even better: make some short screencast (just video is fine) that would show that in action.

0
Avatar
Permanently deleted user

Here is a short vid that shows the case where in one instance the Remote Host is automatically opened and in the other, it requires a manual selection from the list of available FTP sites:
http://retailertoolkit.com/remotehost.mp4

0

Thanks. As far as I know it has to be caused by not having a Default entry.

The entry is green so the path mappings should be setup correctly.

Can you please show screenshot or similar video for "PhpStorm | Preferences | Build, Execution, Deployment | Deployment" for that non-working project?

Double check that it has one entry marked as Default. If not sure -- unmark and mark it as default again (turn OFF and then ON again). You can look at the button hint text if it's not obvious if it's already default or not.

P.S. You can switch projects using "File | Open Recent"

1
Avatar
Permanently deleted user

Thank you. It's now working after making the FTP/Remote Selection selection "Default"...

Cheers!

0
Avatar
Permanently deleted user

Here is what I do to avoid the issues of making the remote server accept your local external IP:

when I ssh into the machine, I use the option -L to transfer the port 6006 of the remote server into the port 16006 of my machine (for instance):
ssh -L 16006:127.0.0.1:6006 olivier@my_server_ip
What it does is that everything on the port 6006 of the server (in 127.0.0.1:6006) will be forwarded to my machine on the port 16006.  

0

Please sign in to leave a comment.