1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Webpack devServer port via process.env.PORT

This commit is contained in:
ivaosthu 2017-01-02 22:23:13 +01:00
parent 87a76b6227
commit df8b001991
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -76,5 +76,6 @@ module.exports = {
secure: false,
},
},
port: process.env.PORT || 3000,
},
};