Hello! First installed MAMP, PhpstormProjects directory was specified as a Document Root. As a result, websites are opened from the MAMP start page, but from the editor itself there are still no (502 Bad Gateway). Accordingly, I can not change the changes, etc. since these processes go through the development environment. Tell me please, what am I doing wrong, what settings did I miss?
- you have mac os why do you need mamp there :-( - Nilsan
- So advise how best to do, I will be very grateful? - coderxx
- Don't you have a google? Well, is this programming? Put apache \ nginx, SQL, php and to make it all easier to use, use homebrew - Nilsan
- Do not believe it, but this option does not suit me. I need something as simple as possible. since I generally deal with the front, and I just need to open the index.php file and fill the feedback loop, the maximum is also require / include. What for me to install and configure the server manually? - coderxx 2:49 pm
- onefinally it worked, thank you :)) - coderxx
|
2 answers
A possible solution to your problem was found by me in 1 minute. Check out this video:
- well, and speed, thanks :) - coderxx
- @coderxx I myself work in the same editor) I know where and what to look for - Antonio112009
|
The issue is resolved by specifying a proxy server in the gulpfile.js configuration:
gulp.task('browser-sync', function() { browserSync({ proxy: "http://localhost:8888/website/app/", notify: false, browser: 'google chrome', }) }); |