Improve naming
This commit is contained in:
parent
f71c7bc3a8
commit
54cf5a072f
4
app.js
4
app.js
@ -86,9 +86,9 @@ if (global.settings.statsd) {
|
||||
}
|
||||
const statsClient = StatsClient.getInstance(global.settings.statsd);
|
||||
|
||||
const serverFactory = require('./app/server');
|
||||
const createServer = require('./app/server');
|
||||
|
||||
const server = serverFactory(statsClient);
|
||||
const server = createServer(statsClient);
|
||||
const listener = server.listen(global.settings.node_port, global.settings.node_host);
|
||||
listener.on('listening', function() {
|
||||
console.info("Using Node.js %s", process.version);
|
||||
|
@ -17,7 +17,7 @@ process.env.PGAPPNAME = process.env.PGAPPNAME || 'cartodb_sqlapi';
|
||||
require('./utils/date_to_json');
|
||||
|
||||
// jshint maxcomplexity:9
|
||||
module.exports = function serverFactory (statsClient) {
|
||||
module.exports = function createServer (statsClient) {
|
||||
const app = express();
|
||||
const redisPool = new RedisPool({
|
||||
name: 'sql-api',
|
||||
|
Loading…
Reference in New Issue
Block a user