Switching Remote System mappings

It would be really helpful if you could define multiple mappings for example one for public_html (live production code) and another for public_dev(development code) and have phpstorm either prompt you which you want to upload or download from or automatically change them depending on what branch of your repo you are currently on.

1 comment
Comment actions Permalink

You can create two identical servers <server name>-production and <server name>-dev differing only in mappings. Then change default server after each branch checkout. Or set no default server and use Upload to... actions and choose server each time. Is it a suitable workaround?

Mapping settings are stored in workspace.xml file, so, they can be put under version control and changed during checkout automatically. But workspace.xml contains full local paths, which makes it useless when there is more that one developer in project.


Please sign in to leave a comment.