Repository: ignite Updated Branches: refs/heads/ignite-5075 88b094485 -> f974c53b9
Web Console: bind to all interfaces in dev mode. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c4b7f401 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c4b7f401 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c4b7f401 Branch: refs/heads/ignite-5075 Commit: c4b7f401b410a5dbd051d42abaf5fca4bc394cc3 Parents: 7a4a194 Author: Andrey Novikov <anovi...@gridgain.com> Authored: Wed May 17 15:51:16 2017 +0700 Committer: Andrey Novikov <anovi...@gridgain.com> Committed: Wed May 17 15:51:16 2017 +0700 ---------------------------------------------------------------------- modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js | 2 +- .../gulpfile.babel.js/webpack/environments/development.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/c4b7f401/modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js b/modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js index 07244b9..d42a711 100644 --- a/modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js +++ b/modules/web-console/frontend/gulpfile.babel.js/tasks/bundle.js @@ -28,7 +28,7 @@ gulp.task('bundle', (cb) => { if (process.env.NODE_ENV === 'development') { // Important! Call webpack and WebpackDevServer must be inline. new WebpackDevServer(webpack(webpackConfig), devServerConfig) - .listen(devServerConfig.port, devServerConfig.host || 'localhost', cb); + .listen(devServerConfig.port, devServerConfig.host, cb); } else webpack(webpackConfig, cb); http://git-wip-us.apache.org/repos/asf/ignite/blob/c4b7f401/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js b/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js index 87094a8..28ecc13 100644 --- a/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js +++ b/modules/web-console/frontend/gulpfile.babel.js/webpack/environments/development.js @@ -19,7 +19,7 @@ import {destDir} from '../../paths'; const backendPort = 3000; const devServerPort = process.env.PORT || 9000; -const devServerHost = process.env.HOST; +const devServerHost = process.env.HOST || '0.0.0.0'; export default { devtool: 'source-map', @@ -33,17 +33,14 @@ export default { proxy: { '/socket.io': { target: `http://localhost:${backendPort}`, - changeOrigin: true, ws: true }, '/agents': { target: `http://localhost:${backendPort}`, - changeOrigin: true, ws: true }, '/api/v1/*': { target: `http://localhost:${backendPort}`, - changeOrigin: true, pathRewrite: { '^/api/v1': '' }