Linted app and server.js files.
This commit is contained in:
@@ -8,7 +8,6 @@ const configuration = require('src/config/configuration').getInstance();
|
||||
// TODO: Have our raven router check if there is a value, if not don't enable raven.
|
||||
Raven.config(configuration.get('raven', 'DSN')).install();
|
||||
|
||||
|
||||
const app = express(); // define our app using express
|
||||
app.use(Raven.requestHandler());
|
||||
// this will let us get the data from a POST
|
||||
|
||||
@@ -2,7 +2,10 @@ const config = require('src/config/configuration').getInstance();
|
||||
const app = require('./app');
|
||||
|
||||
module.exports = app.listen(config.get('webserver', 'port'), () => {
|
||||
/* eslint-disable no-console */
|
||||
console.log('seasonedAPI');
|
||||
/* eslint-disable no-console */
|
||||
console.log(`Database is located at ${config.get('database', 'host')}`);
|
||||
/* eslint-disable no-console */
|
||||
console.log(`Webserver is listening on ${config.get('webserver', 'port')}`);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user