pinittome / pinitto.me

Main repo for pinitto.me open source corkboard
https://pinitto.me
Apache License 2.0
64 stars 14 forks source link

Error: database name must be a string #135

Open AndyMBridges opened 7 years ago

AndyMBridges commented 7 years ago

Hi Guys,

I have created a config.production.js file by duplicating the example and I receive the following error when running 'node index'

Error: database name must be a string at validateDatabaseName (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:205:46) at new Db (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/db.js:77:3) at new MongoStore (/Users/andrew.bridges/sites/pinitto.me/node_modules/connect-mongo/lib/connect-mongo.js:95:17) at Object. (/Users/andrew.bridges/sites/pinitto.me/src/database/session.js:4:17) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17)

Thanks

lloydwatkin commented 7 years ago

Can you try commenting line 15 here https://github.com/pinittome/pinitto.me/blob/master/src/database-loader.js#L15, it may be that this parameter is preventing you from connecting (its needed for mongolab right now)