M
M
Maxim Denisyuk2014-07-28 15:19:02
phpstorm
Maxim Denisyuk, 2014-07-28 15:19:02

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
e5c23a357bb84703835abfb7ff25ba9d.pnga2ba112182be4a15832a7bf331b962b1.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Make Now, 2015-03-09
@maxmaster

In general, I managed to solve this problem sl. way:
And then you need to set these default settings. Seems to be working...

P
Pavel Gerasimov, 2016-05-02
@PavelGERAsimov

Thanks to!
Very useful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question