added staging enviorment
This commit is contained in:
parent
8a407ef50d
commit
4874568c5c
@ -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);
|
||||
}
|
||||
|
||||
|
12
config/environments/staging.js
Normal file
12
config/environments/staging.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user