1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Server: use constants to get port configuration

This commit is contained in:
Chocobozzz 2016-11-01 19:17:25 +01:00
parent b1233aa856
commit d16b5172ae
2 changed files with 4 additions and 3 deletions

View file

@ -40,9 +40,6 @@ const mongoose = require('mongoose')
const routes = require('./server/controllers')
const Request = mongoose.model('Request')
// Get configurations
const port = config.get('listen.port')
// ----------- Command line -----------
// ----------- App -----------
@ -129,6 +126,7 @@ app.use(function (err, req, res, next) {
res.sendStatus(err.status || 500)
})
const port = constants.CONFIG.LISTEN.PORT
installer.installApplication(function (err) {
if (err) throw err