V
V
VegasChickiChicki2019-06-15 02:10:41
phpstorm
VegasChickiChicki, 2019-06-15 02:10:41

Phpstorm + openserver different localhost, how to fix?

My head hurts already, I'm struggling with setting up all this for several hours and I can't understand anything...
On one project everything works fine, on the second it's some kind of nonsense, I don't understand what I'm missing...
The bottom line is that I I need to make a request to the server to the php file, but it is simply not visible, after the request I get a 404 error, which means a request to nowhere. The site is launched via gulp with the address http://localhost:3000, and php , if opened, at the address http://localhost:63342... , what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VegasChickiChicki, 2019-06-15
@VegasChickiChicki

The problem was in Gulp, it was impossible to reconfigure this:

gulp.task('serve', async function() {
    bs.init({
        proxy: 'VueAdmin',
        port: 3000,
        notify: false
    });
    bs.watch('app',bs.reload)
});

Instead of a folder to monitor, you need to specify a proxy with the name of the configured domain in OpenServer.

G
Gip, 2019-06-15
@Giperoglif

strange, I can’t open your links (the Internet seems to be working

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question