const routes = require('./server/controllers')
const Request = mongoose.model('Request')
-// Get configurations
-const port = config.get('listen.port')
-
// ----------- Command line -----------
// ----------- App -----------
res.sendStatus(err.status || 500)
})
+const port = constants.CONFIG.LISTEN.PORT
installer.installApplication(function (err) {
if (err) throw err
// ---------------------------------------------------------------------------
const CONFIG = {
+ LISTEN: {
+ PORT: config.get('listen.port')
+ },
DATABASE: {
DBNAME: 'peertube' + config.get('database.suffix'),
HOSTNAME: config.get('database.hostname'),