You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a php docker image and i want to know how can i access to the wpackio server when i launch npm start on the "site" container.
I dont have access to the http://172.18.0.4:3000 (wpackio server) out of my container, and it's normal, but i dont know how to do...
So maybe someone use wpackio in docker with success ?
Thks !
wpackio.server.js :
module.exports = {
// Your LAN IP or host where you would want the live server
// Override this if you know your correct external IP (LAN)
// Otherwise, the system will always use localhost and will not
// work for external IP.
// This will also create some issues with file watching because for
// some reason, service-worker doesn't work on localhost?
// https://github.com/BrowserSync/browser-sync/issues/1295
// So it is recommended to change this to your LAN IP.
// If you intend to access it from your LAN (probably do?)
// If you keep null, then wpackio-scripts will try to determine your LAN IP
// on it's own, which might not always be satisfying. But it is in most cases.
host: undefined,
// Your WordPress development server address
// This is super important
proxy: 'http://localhost:8070/',
// PORT on your localhost where you would want live server to hook
port: 3000,
// UI passed directly to browsersync
ui: {
port: 3001,
},
// Whether to show the "BrowserSync Connected"
notify: false,
// Open the local URL, set to false to disable
open: false,
// BrowserSync ghostMode, set to false to completely disable
ghostMode: {
clicks: true,
scroll: true,
forms: true,
},
// Override system calculated public path of the `dist` directory
// This must have forward slash, otherwise it will not work.
distPublicPath: undefined,
};
Hello guys,
I have a php docker image and i want to know how can i access to the wpackio server when i launch npm start on the "site" container.
I dont have access to the http://172.18.0.4:3000 (wpackio server) out of my container, and it's normal, but i dont know how to do...
So maybe someone use wpackio in docker with success ?
Thks !
wpackio.server.js :
docker-compose.yml :
Docker :
The text was updated successfully, but these errors were encountered: