message: Whoops, some dev changes to server.js leaked
diff: @@ -18,24 +18,24 @@ function resolve(file) {
  const numWorkers = require('os').cpus().length;
  const isProd = process.env.NODE_ENV === 'production';
  -// if (cluster.isMaster) {
  -// console.log(`Master ${process.pid} is running`);
  -
  -// // Fork workers.
  -// for (let i = 0; i < numWorkers; i++) {
  -// cluster.fork();
  -// }
  -
  -// cluster.on('exit', (worker, code, signal) => {
  -// console.log(`worker ${worker.process.pid} died`);
  -// cluster.fork();
  -// });
  -// } else {
  +if (cluster.isMaster) {
  + console.log(`Master ${process.pid} is running`);
  +
  + // Fork workers.
  + for (let i = 0; i < numWorkers; i++) {
  + cluster.fork();
  + }
  +
  + cluster.on('exit', (worker, code, signal) => {
  + console.log(`worker ${worker.process.pid} died`);
  + cluster.fork();
  + });
  +} else {
  console.log(`Worker ${process.pid} started`);
  const section = argv.section || 'app';
  -const serverBuildPath = isProd ? '../build/prod-server/' : '../build/dev-server/';
  -const clientBuildPath = isProd ? '../build/prod/' : '../build/dev/';
  + const serverBuildPath = isProd ? '../../build/prod-server/' : '../build/dev-server/';
  + const clientBuildPath = isProd ? '../../build/prod/' : '../build/dev/';
  const serverBundle = require(path.join(
  serverBuildPath,
  @@ -123,4 +123,4 @@ const port = 3501;
  server.listen(port, () => {
  console.log(`server started at localhost:${port}`);
  });
  -// }
  +}
  