Use a default base_url when not specified in config file
Also report the base_url at startup
This commit is contained in:
parent
3f98cab09a
commit
650756852a
5
app.js
5
app.js
@ -25,7 +25,10 @@ var env = require(__dirname + '/config/environments/' + ENV);
|
|||||||
_.extend(global.settings, env);
|
_.extend(global.settings, env);
|
||||||
|
|
||||||
// kick off controller
|
// kick off controller
|
||||||
|
if ( ! global.settings.base_url ) global.settings.base_url = '/api/*';
|
||||||
var app = require(global.settings.app_root + '/app/controllers/app');
|
var app = require(global.settings.app_root + '/app/controllers/app');
|
||||||
app.listen(global.settings.node_port, global.settings.node_host, function() {
|
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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user