added staging enviorment

This commit is contained in:
javi 2011-09-16 13:43:10 +02:00
parent 8a407ef50d
commit 4874568c5c
3 changed files with 36 additions and 24 deletions

View File

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

View File

@ -0,0 +1,12 @@
module.exports.node_port = 8080;
module.exports.environment = 'staging';
module.exports.db_base_name = 'cartodb_user_<%= user_id %>_db';
module.exports.db_user = 'cartodb_user_<%= user_id %>';
module.exports.db_host = 'localhost';
module.exports.db_port = '6432';
module.exports.redis_host = '127.0.0.1';
module.exports.redis_port = 6379;
module.exports.redisPool = 50;
module.exports.redisIdleTimeoutMillis = 10000;
module.exports.redisReapIntervalMillis = 1000;
module.exports.redisLog = false;