C
C
coderxx2018-12-14 16:01:25
macOS
coderxx, 2018-12-14 16:01:25

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

1 answer(s)
C
coderxx, 2018-12-14
@coderxx

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',
  })
});

PS For future generations, I will also leave here a short instruction on adding a php interpreter to PhpStorm: https://www.youtube.com/watch?v=CqHWhaPOfos

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question