jsonresume / registry-server

This repo is deprecated in favor of https://github.com/jsonresume/registry-functions
https://github.com/jsonresume/registry-functions
MIT License
95 stars 46 forks source link

Register error on local instance #30

Closed mchelen closed 9 years ago

mchelen commented 9 years ago

Trying to use resume register on a local instance of registry-server shows an error in the server console:

TypeError: Cannot call method 'collection' of null
    at Object.handle (/vagrant/registry-server/server.js:500:12)
    at next_layer (/vagrant/registry-server/node_modules/express/lib/router/route.js:103:13)
    at Route.dispatch (/vagrant/registry-server/node_modules/express/lib/router/route.js:107:5)
    at /vagrant/registry-server/node_modules/express/lib/router/index.js:213:24
    at Function.proto.process_params (/vagrant/registry-server/node_modules/express/lib/router/index.js:286:12)
    at next (/vagrant/registry-server/node_modules/express/lib/router/index.js:207:19)
    at next (/vagrant/registry-server/node_modules/express/lib/router/index.js:182:38)
    at next (/vagrant/registry-server/node_modules/express/lib/router/index.js:182:38)
    at next_layer (/vagrant/registry-server/node_modules/express/lib/router/route.js:77:14)
    at next_layer (/vagrant/registry-server/node_modules/express/lib/router/route.js:81:14)
mchelen commented 9 years ago

mongodb had to be initialized & connected to properly

mongo localhost:27017/jsonresume --eval "db.resumes.insert({})"
MONGOHQ_URL=mongodb://localhost:27017/jsonresume node server.js