Allow 'staging' as an env name for non-clustered run

This commit is contained in:
Sandro Santilli 2013-05-29 17:09:20 +02:00
parent 7f9463e7fd
commit 1c9179eeec

4
app.js
View File

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