From f3ce7957f392a6279bf49bdb3460c2469947b5ee Mon Sep 17 00:00:00 2001 From: bill bittner Date: Tue, 18 Jul 2017 09:59:40 -0700 Subject: [PATCH] small cosmetics in server.js --- server.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/server.js b/server.js index 0b0beead..0633a23a 100644 --- a/server.js +++ b/server.js @@ -8,17 +8,14 @@ const config = require('config'); const logger = require('winston'); const { getDownloadDirectory } = require('./helpers/libraries/lbryApi'); +const PORT = 3000; // set port +const app = express(); // create an Express application +const db = require('./models'); // require our models for syncing + // configure logging const logLevel = config.get('Logging.LogLevel'); require('./config/loggerSetup.js')(logger, logLevel); -// set port -const PORT = 3000; -// create an Express application -const app = express(); -// require our models for syncing -const db = require('./models'); - // serve static files from public directory (css/js/img) app.use(express.static(`${__dirname}/public`)); @@ -32,7 +29,7 @@ app.use((req, res, next) => { // logging middleware next(); }); -// configure handlebars & register it with Express app +// configure handlebars & register it with express app const hbs = expressHandlebars.create({ defaultLayout: 'main', // sets the default layout handlebars : Handlebars, // includes basic handlebars for access to that library