From 2c1d46f15980f3dd6422e2243128ff02c1c5d5a8 Mon Sep 17 00:00:00 2001 From: Luis Bosque Date: Tue, 29 Jul 2014 14:54:35 +0200 Subject: [PATCH] [CDB-3678] Creates api_hostname global variable --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 4792334d..c420ab61 100755 --- a/app.js +++ b/app.js @@ -29,6 +29,7 @@ var _ = require('underscore'); // set environment specific variables global.environment = require(__dirname + '/config/environments/' + ENV); +global.environment.api_hostname = require('os').hostname().split('.')[0]; global.log4js = require('log4js') log4js_config = {