0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00

require heapdump if present on the system

This commit is contained in:
Alex Kocharin 2013-12-29 04:52:23 +04:00
parent 6c838c7947
commit 8c05cfe6a2
2 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,12 @@ if (process.getuid() === 0) {
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.") 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') var logger = require('./logger')
logger.setup() // default setup logger.setup() // default setup

View file

@ -7,7 +7,7 @@ description: Private npm repository server
author: author:
name: Alex Kocharin name: Alex Kocharin
email: alex@kocharin.ru email: alex@kocharin.ru
repository: repository:
type: git type: git
url: git://github.com/rlidwka/sinopia url: git://github.com/rlidwka/sinopia
@ -37,6 +37,10 @@ devDependencies:
eslint: '*' eslint: '*'
#eslint-stylish: '*' #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: keywords:
- private - private
- package - package