Skip to content

Commit

Permalink
Remove setup from server startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomd committed Oct 3, 2017
1 parent 0737be1 commit 2ca82d4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const bodyParser = require('body-parser');
const server = require('express')();
const Queue = require('promise-queue');
const {version} = require('../package.json');
const {setup, stage, sync, github, gitlab} = require('./core');
const {stage, sync, github, gitlab} = require('./core');
const log = require('./logger');

const PORT = process.env.PORT || 3000;
Expand Down Expand Up @@ -57,10 +57,6 @@ server.post('/', (request, response) => {
});
});

setup().then(() => {
server.listen(PORT, () => {
log.info(`Server listening on ${PORT}... `);
});
}).catch((error) => {
log.error(error);
server.listen(PORT, () => {
log.info(`Server listening on ${PORT}... `);
});

0 comments on commit 2ca82d4

Please sign in to comment.