From 650756852a9ff4011afe2e662495066fdce079e8 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 24 May 2013 14:45:10 +0200 Subject: [PATCH] Use a default base_url when not specified in config file Also report the base_url at startup --- app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 91a178a8..96c37f49 100755 --- a/app.js +++ b/app.js @@ -25,7 +25,10 @@ var env = require(__dirname + '/config/environments/' + ENV); _.extend(global.settings, env); // kick off controller +if ( ! global.settings.base_url ) global.settings.base_url = '/api/*'; var app = require(global.settings.app_root + '/app/controllers/app'); app.listen(global.settings.node_port, global.settings.node_host, function() { - console.log("CartoDB SQL API listening on " + global.settings.node_host + ":" + global.settings.node_port); + console.log("CartoDB SQL API listening on " + + global.settings.node_host + ":" + global.settings.node_port + + " with base_url " + global.settings.base_url); });