Answer the question
In order to leave comments, you need to log in
How to configure PhpStorm 8 EAP to open files for browser view at deployment_path rather than local project file?
Hello!
In the PhpStorm project settings, in the Connection settings, the path to the folder on the local server and mappings of the form S:\localhost\sitename are set , the server gives these sites along the path of the form http ://sitename/ (without a domain).
Server: OpenServer 5.1, it does NOT have the "make changes to the hosts file" option set.
Problem : if you open a file from the IDE via Alt+F2 (or open in browser), then the local file file:///absolute_path_to_file is opened , but you need it as specified in the mappings http ://sitename . If you enable the built-in web server in PhpStorm, then the site opens at localhost:63342/relative_path_to_file
Problem 2: the specified behavior is not observed in all projects, in some it opens correctly, in some it does not. Didn't find patterns
Answer the question
In order to leave comments, you need to log in
In general, I managed to solve this problem sl. way:
And then you need to set these default settings. Seems to be working...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question