cleanup
This commit is contained in:
parent
478c6ebe0c
commit
1771467474
4 changed files with 6 additions and 37 deletions
25
lib/app.js
25
lib/app.js
|
|
@ -35,11 +35,6 @@ module.exports = function (options) {
|
|||
plugins.startPolling()
|
||||
plugins.startCheckingNotification()
|
||||
|
||||
console.log('DEBUG9.3 ****************')
|
||||
|
||||
|
||||
console.log('DEBUG9 ****************')
|
||||
|
||||
var authMiddleware
|
||||
|
||||
if (options.https) {
|
||||
|
|
@ -76,26 +71,6 @@ module.exports = function (options) {
|
|||
|
||||
if (options.mock) logger.info('In mock mode')
|
||||
|
||||
var localApp = express()
|
||||
localApp.use(bodyParser.json())
|
||||
var localServer = http.createServer(localApp)
|
||||
var localPort = 7070
|
||||
|
||||
console.log('DEBUG7 ****************')
|
||||
routes.init({
|
||||
app: app,
|
||||
localApp: localApp,
|
||||
plugins: plugins,
|
||||
authMiddleware: authMiddleware,
|
||||
// reloadConfigMiddleware: reloadConfigMiddleware,
|
||||
mock: options.mock
|
||||
})
|
||||
|
||||
// localServer.listen(7070, 'localhost', function () {
|
||||
// console.log('lamassu-server is listening on local port %d', localPort)
|
||||
// })
|
||||
|
||||
return server
|
||||
})
|
||||
.catch(e => console.log(e.stack))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue