From df8b001991adbfcc8e53e3ecc82d0b78ab538d40 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 2 Jan 2017 22:23:13 +0100 Subject: [PATCH] Webpack devServer port via process.env.PORT --- frontend/package.json | 2 +- frontend/webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 39f97fa79b..975047a812 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,7 +26,7 @@ "build": "npm run build:assets && npm run build:html", "build:assets": "NODE_ENV=production webpack -p", "build:html": "cp public/*.* dist/.", - "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors --port 3000", + "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors", "start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start", "lint": "eslint . --ext=js,jsx", "test": "npm run build", diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index efea565f3d..3dfeb4c5de 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -76,5 +76,6 @@ module.exports = { secure: false, }, }, + port: process.env.PORT || 3000, }, };