exports.env = process.env.NODE_ENV || 'development';
if(exports.env == 'production'){
  exports.scheme = 'http';
  exports.hostname = 'caretracker-test.jit.su';
}else{ // Development
  exports.scheme = '';
  exports.hostname = 'localhost';
  exports.port = 3000;
}

var schemeSuffix = exports.scheme ? '://' : '';

var portPrefix = exports.port ? ':' : '';

exports.hostWithPort = exports.hostname + portPrefix + exports.port
exports.url = exports.scheme + schemeSuffix + exports.hostWithPort

@@ -46,16 +46,73 @@
 pment';%0A
+exports.hostname = process.env.HOSTNAME %7C%7C 'localhost';%0A%0A
 if(expor
@@ -160,29 +160,34 @@
  = 'http
+s
 ';%0A
-  
+%7D%0A%0Aif(
 exports.
 hostname
@@ -182,67 +182,55 @@
 rts.
-hostname = 'caretracker-test.jit.su';%0A%7Delse%7B // Development
+env == 'development' %7C%7C exports.env == 'test')%7B
 %0A  e

use HTTPS in generating links