diff --git a/src/lib/cli.js b/src/lib/cli.js index 62a2fb348..10761733d 100644 --- a/src/lib/cli.js +++ b/src/lib/cli.js @@ -48,6 +48,7 @@ const cliListner = commander.listen; try { configPathLocation = findConfigFile(commander.config); verdaccioConfiguration = Utils.parseConfigFile(configPathLocation); + process.title = verdaccioConfiguration.web && verdaccioConfiguration.web.title || 'verdaccio'; logger.logger.warn({file: configPathLocation}, 'config file - @{file}'); } catch (err) { @@ -55,8 +56,6 @@ try { process.exit(1); } -process.title = config.web && config.web.title || 'verdaccio'; - startVerdaccio(verdaccioConfiguration, cliListner, configPathLocation, pkgVersion, pkgName, listenDefaultCallback); process.on('uncaughtException', function(err) {