mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-24 23:55:46 -05:00
require heapdump if present on the system
This commit is contained in:
parent
6c838c7947
commit
8c05cfe6a2
2 changed files with 11 additions and 1 deletions
|
@ -4,6 +4,12 @@ if (process.getuid() === 0) {
|
|||
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.")
|
||||
}
|
||||
|
||||
try {
|
||||
// for debugging memory leaks
|
||||
// totally optional
|
||||
require('heapdump')
|
||||
} catch(err){}
|
||||
|
||||
var logger = require('./logger')
|
||||
logger.setup() // default setup
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ description: Private npm repository server
|
|||
author:
|
||||
name: Alex Kocharin
|
||||
email: alex@kocharin.ru
|
||||
|
||||
|
||||
repository:
|
||||
type: git
|
||||
url: git://github.com/rlidwka/sinopia
|
||||
|
@ -37,6 +37,10 @@ devDependencies:
|
|||
eslint: '*'
|
||||
#eslint-stylish: '*'
|
||||
|
||||
# for debugging memory leaks, it'll be require()'d if
|
||||
# installed, but I don't want it to be installed everytime
|
||||
#heapdump: '*'
|
||||
|
||||
keywords:
|
||||
- private
|
||||
- package
|
||||
|
|
Loading…
Add table
Reference in a new issue