trim startup things

This commit is contained in:
Simon Tokumine 2011-08-23 14:58:06 +01:00
parent c4f2195ed0
commit d9bdb1f1dc
2 changed files with 2 additions and 4 deletions

2
app.js Normal file → Executable file
View File

@ -14,7 +14,7 @@ var _ = require('underscore');
// sanity check arguments
var ENV = process.argv[2]
if (ENV != 'development' && ENV != 'production') {
console.error("\nnode app [environment]");
console.error("\n./app [environment]");
console.error("environments: [development, test, production]");
process.exit(1);
}

View File

@ -15,7 +15,7 @@ var cluster = require('cluster');
// sanity check arguments
var ENV = process.argv[2]
if (ENV != 'development' && ENV != 'production') {
console.error("\nnode app [environment]");
console.error("\n./cluster [environment]");
console.error("environments: [development, test, production]");
process.exit(1);
}
@ -29,6 +29,4 @@ cluster('./app/controllers/app')
.use(cluster.logger('logs'))
.use(cluster.stats())
.use(cluster.pidfiles('pids'))
.use(cluster.cli())
.use(cluster.repl(8888))
.listen(global.settings.node_port);