S
S
Sergey Goryachev2016-04-25 01:29:13
LAMP
Sergey Goryachev, 2016-04-25 01:29:13

Why does gulp watch open the same site?

Recently, the gulp watch team has been opening the same site.
At what not localhost:3000, as before, but a separate site from the list of my projects.
I actually have browserSync installed, everything is written in gulpfile.js as it should.

// browserSync task
gulp.task('browserSync', ['css', 'scripts'], function(){
    browserSync.init({
        proxy: "webirus.loc"
    });
});

When you run gulp watch, everything starts as before and even writes roots.
[BS] Proxying: http://webirus.loc
[BS] Access URLs:
 -------------------------------------
       Local: http://localhost:3000
    External: http://192.168.0.97:3000
 -------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.0.97:3001

But the browser (Firefox) always opens another project.
It doesn't matter which gulp I'm running.
Even in old projects, where everything worked well, it launches one site.
As far as I understand, everything is correctly spelled out in the browserSync settings.
Overview
Local
http://localhost:3000
External
http://192.168.0.97:3000
Proxying:
http://webirus.loc

This is a little confusing:
Current Connections
Connected browsers will be listed here.

Where in general to dig in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2016-04-25
@webirus

The problem is in Firefox.
Apparently, the DNS cache hung and the root did not work.
A complete cleaning of Mozilla helped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question