Allow "staging" as env name from app.js

This commit is contained in:
Sandro Santilli 2013-02-11 13:41:51 +01:00
parent b3f8515fd5
commit 031c6ee0cd

4
app.js
View File

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