Allow using "test" as and environment name

This commit is contained in:
Sandro Santilli 2013-03-14 09:16:06 +01:00
parent c5b2534687
commit 133add8741

2
app.js
View File

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