/* eslint no-var: 0, func-names: 0 , no-console: 0 */

/**
 * Development Server
 * - See https://github.com/gaearon/react-transform-boilerplate
 */

var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config.dev');

var app = express();
var compiler = webpack(config);

app.use(require('webpack-dev-middleware')(compiler, {
  noInfo: true,
  publicPath: config.output.publicPath,
}));

app.use(require('webpack-hot-middleware')(compiler));

app.get('*', function (req, res) {
  res.sendFile(path.join(__dirname, 'src/index.html'));
});

app.listen(3000, 'localhost', function (err) {
  if (err) {
    console.log(err);
    return;
  }
  console.log(process.env.NODE_ENV);
  console.log('Listening at http://localhost:3000');
});

@@ -336,24 +336,62 @@
 k(config);%0A%0A
+var PORT = process.env.PORT %7C%7C 3000;%0A%0A
 app.use(requ
@@ -656,20 +656,20 @@
 .listen(
-3000
+PORT
 , 'local
@@ -747,44 +747,8 @@
   %7D%0A
-  console.log(process.env.NODE_ENV);
 %0A  c
@@ -793,13 +793,16 @@
 ost:
-3000'
+' + PORT
 );%0A%7D

Read dev server port from env if its there