[CDB-3678] Creates api_hostname global variable

This commit is contained in:
Luis Bosque 2014-07-29 14:54:35 +02:00
parent 67df6a4d73
commit 2c1d46f159

1
app.js
View File

@ -29,6 +29,7 @@ var _ = require('underscore');
// set environment specific variables // set environment specific variables
global.environment = require(__dirname + '/config/environments/' + ENV); global.environment = require(__dirname + '/config/environments/' + ENV);
global.environment.api_hostname = require('os').hostname().split('.')[0];
global.log4js = require('log4js') global.log4js = require('log4js')
log4js_config = { log4js_config = {