Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Dec 2, 2016
1 parent 9898896 commit e5bf7f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/app/main.js
Expand Up @@ -2,7 +2,7 @@

require("es6-promise").polyfill();

import style from "../scss/style.scss";
import "../scss/style.scss";
import Vue from "vue";
import VueRouter from "vue-router";
import VueResource from "vue-resource";
Expand Down
14 changes: 7 additions & 7 deletions cluster.js
@@ -1,16 +1,16 @@
"use strict";

const
cluster = require('cluster'),
cluster = require("cluster"),
stopSignals = [
'SIGHUP', 'SIGINT', 'SIGQUIT', 'SIGILL', 'SIGTRAP', 'SIGABRT',
'SIGBUS', 'SIGFPE', 'SIGUSR1', 'SIGSEGV', 'SIGUSR2', 'SIGTERM'
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", "SIGABRT",
"SIGBUS", "SIGFPE", "SIGUSR1", "SIGSEGV", "SIGUSR2", "SIGTERM"
],
production = process.env.NODE_ENV == 'production';
production = process.env.NODE_ENV == "production";

let stopping = false;

cluster.on('disconnect', function(worker) {
cluster.on("disconnect", function(worker) {
if (production) {
if (!stopping)
cluster.fork();
Expand All @@ -30,11 +30,11 @@ if (cluster.isMaster) {
console.log(`Got ${signal}, stopping workers...`);
stopping = true;
cluster.disconnect(function () {
console.log('All workers stopped, exiting.');
console.log("All workers stopped, exiting.");
process.exit(0);
});
});
});
}
} else
require('./server/index.js');
require("./server/index.js");

0 comments on commit e5bf7f5

Please sign in to comment.