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