0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00

forgot to resolve path to storage

This commit is contained in:
Alex Kocharin 2014-09-07 00:57:40 +04:00
parent 8d841ea8e3
commit a0c861ec5a

View file

@ -29,7 +29,12 @@ function Config(config) {
assert.equal(typeof(config), 'object', 'CONFIG: this doesn\'t look like a valid config file') assert.equal(typeof(config), 'object', 'CONFIG: this doesn\'t look like a valid config file')
assert(this.storage, 'CONFIG: storage path not defined') assert(this.storage, 'CONFIG: storage path not defined')
this.localList = LocalList(Path.join(this.storage, '.sinopia-db.json')) this.localList = LocalList(
Path.join(
Path.resolve(Path.dirname(this.self_path), this.storage),
'.sinopia-db.json'
)
)
var users = {all:true, anonymous:true, 'undefined':true, owner:true, none:true} var users = {all:true, anonymous:true, 'undefined':true, owner:true, none:true}