From 4e3552f0733a972be7d89e3598ba111de8064d01 Mon Sep 17 00:00:00 2001 From: missinglink Date: Fri, 18 May 2018 14:28:59 +0200 Subject: [PATCH] index: revert changes --- index.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index a50dc518..f541c0cc 100644 --- a/index.js +++ b/index.js @@ -1,14 +1,10 @@ const app = require('./app'), - typeMapping = require('./helper/type_mapping'), port = ( process.env.PORT || 3100 ), host = ( process.env.HOST || undefined ); -// ensure the dynamic type mappings are loaded before starting the server. -typeMapping.load(() => { - const server = app.listen( port, host, () => { - // ask server for the actual address and port its listening on - const listenAddress = server.address(); - console.log( `pelias is now running on ${listenAddress.address}:${listenAddress.port}` ); - }); -}); \ No newline at end of file +const server = app.listen( port, host, () => { + // ask server for the actual address and port its listening on + const listenAddress = server.address(); + console.log( `pelias is now running on ${listenAddress.address}:${listenAddress.port}` ); +});