Answer the question
In order to leave comments, you need to log in
How to make MAMP work correctly?
Hello! I installed MAMP for the first time, specified the PhpstormProjects directory as the Document Root.
As a result, sites are opened from the MAMP start page, but still not from the editor itself (502 Bad Gateway).
Accordingly, I cannot fix changes, etc. because these processes go through the development environment.
Please tell me what I'm doing wrong, what settings did I miss?
Answer the question
In order to leave comments, you need to log in
I actually figured it out, maybe it will help someone - you need to register a proxy in the browserSync configuration:
gulp.task('browser-sync', function() {
browserSync({
proxy: "http://localhost:8888/website/app/",
notify: false,
browser: 'google chrome',
})
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question