Ich habe VVV, (gerade installiert) für Theme-Entwicklung mit Gulp zusammen mit Gulp-BrowserSync (und anderen Npm-Pakete).VVV und Gulp BrowserSync gibt eine nutzlose öffentliche IP aus
In VVV habe ich eine neue WP-Installation namens Organic mit organic.du.dev als URL erstellt. Es funktioniert gut.
In meinem gulpfile.js bekam ich folgende BrowserSync Aufgabe:
gulp.task('browser-sync', function() {
browserSync.init({
// For more options
// @link http://www.browsersync.io/docs/options/
// Project URL.
proxy: projectURL,
// `true` Automatically open the browser with BrowserSync live server.
// `false` Stop the browser from automatically opening.
open: true,
// Inject CSS changes.
// Commnet it to reload browser for every CSS change.
injectChanges: true,
// Use a specific port (instead of the one auto-detected by Browsersync).
// port: 7000,
});
});
Wenn ich initiieren GULP (Login über vagrant ssh) in den Arbeitsordner alles läuft und ich die folgende Meldung:
[
BS] Proxying: http://organic.du.dev
[BS] Access URLs:
----------------------------------
Local: http://localhost:3000
External: http://10.0.2.15:3000
----------------------------------
UI: http://localhost:3001
UI External: http://10.0.2.15:3001
Das Problem ist, dass http://localhost:3000 nicht erreichbar von Chrome oder Safari ist und dass http://10.0.2.15:3001 ist eine öffentliche (und nutzlos, soweit ich weiß) IP. Laufen ifconfig in vagrant @ vvv erhalte ich die folgende Meldung:
[email protected]:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:67:05:88
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
und auch die Arbeitslocalhost IP, das ist:
eth1 Link encap:Ethernet HWaddr 08:00:27:4e:59:e0
inet addr:192.168.50.4 Bcast:192.168.50.255 Mask:255.255.255.0
Es hat mich eine Weile zu erkennen und zu finden, was los ist, aber Das Problem ist, dass ich es immer noch nicht verstehe. Ich denke, das ist ein Fehler und sollte gelöst werden.