C
C
Cguru2015-01-12 21:15:55
Software Deployment
Cguru, 2015-01-12 21:15:55

How to set up FTP and multiple content root folders in phpstorm?

Please tell me how to set up phpstorm correctly if you need to work with several folders within the project that do not have a common direct parent. Or even located on different FTP servers.
Previously worked with Sublime Text There this problem was solved quite elegantly. Each folder in the project could have its own settings for working with FTP.
Does phpstorm have a solution for such problems?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zarema Khalilova, 2015-01-13
@Zmoki

In PhpStorm 8: "File" - "Settings" - "Build, Execution, Deployment" - "Deployment", you add an ftp server, and on the "Mappings" tab you specify folder correspondences on the server and locally. You can specify multiple different mappings between folders and multiple servers.

D
Dmitry Vapelnik, 2015-01-22
@dvapelnik

As far as I know, this cannot be done. The ideology of deployment in PhpStorm is such that there is one deployment server or folder for one project,
but no one bothers us to hack: you specify a certain folder as a deployment server, and mount different servers in it. this way PhpStorm will work with one resource (folder), and in fact you will have several ftp resources mounted there. if you have a tricky business of folders on resources there, then you can also hack it by mounting this whole thing somewhere to the side and then pointing to the folders in the project with symlinks,
but this is a crutch. I don’t know a clean solution to the problem in PhpStorm because I didn’t even ask such a question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question