trim startup things
This commit is contained in:
parent
c4f2195ed0
commit
d9bdb1f1dc
2
app.js
Normal file → Executable file
2
app.js
Normal file → Executable file
@ -14,7 +14,7 @@ var _ = require('underscore');
|
|||||||
// sanity check arguments
|
// sanity check arguments
|
||||||
var ENV = process.argv[2]
|
var ENV = process.argv[2]
|
||||||
if (ENV != 'development' && ENV != 'production') {
|
if (ENV != 'development' && ENV != 'production') {
|
||||||
console.error("\nnode app [environment]");
|
console.error("\n./app [environment]");
|
||||||
console.error("environments: [development, test, production]");
|
console.error("environments: [development, test, production]");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ var cluster = require('cluster');
|
|||||||
// sanity check arguments
|
// sanity check arguments
|
||||||
var ENV = process.argv[2]
|
var ENV = process.argv[2]
|
||||||
if (ENV != 'development' && ENV != 'production') {
|
if (ENV != 'development' && ENV != 'production') {
|
||||||
console.error("\nnode app [environment]");
|
console.error("\n./cluster [environment]");
|
||||||
console.error("environments: [development, test, production]");
|
console.error("environments: [development, test, production]");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
@ -29,6 +29,4 @@ cluster('./app/controllers/app')
|
|||||||
.use(cluster.logger('logs'))
|
.use(cluster.logger('logs'))
|
||||||
.use(cluster.stats())
|
.use(cluster.stats())
|
||||||
.use(cluster.pidfiles('pids'))
|
.use(cluster.pidfiles('pids'))
|
||||||
.use(cluster.cli())
|
|
||||||
.use(cluster.repl(8888))
|
|
||||||
.listen(global.settings.node_port);
|
.listen(global.settings.node_port);
|
||||||
|
Loading…
Reference in New Issue
Block a user