[CDB-3678] Creates api_hostname global variable
This commit is contained in:
parent
67df6a4d73
commit
2c1d46f159
1
app.js
1
app.js
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user