@ -428,12 +428,10 @@ module.exports = (port, spinner) => {
switch (error.code) {
case 'EACCES':
spinner.fail('Listening on port ' + port + ' requires elevated privileges!')
process.exit(1)
break
return process.exit(1)
case 'EADDRINUSE':
spinner.fail('Port ' + port + ' is already in use!')
default:
throw error
}
@ -1,5 +1,7 @@
'use strict'
/* eslint-disable standard/no-callback-literal */
const _ = require('lodash')
module.exports = (socket) => {
@ -132,8 +132,7 @@ pm2.connectAsync().then(() => {
})
console.info(colors.bold.cyan('> Open config.yml in your favorite editor. Then start Wiki.js using: node wiki start'))
process.exit(0)
return process.exit(0)
}).then(() => {
ora.succeed(colors.bold.green('Wiki.js has been configured and is now running!'))
@ -198,12 +198,10 @@ server.on('error', (error) => {
console.error('Listening on port ' + appconfig.port + ' requires elevated privileges!')
console.error('Port ' + appconfig.port + ' is already in use!')