IEEECS-VIT / motherload

Self explanatory
GNU General Public License v3.0
1 stars 2 forks source link

Application Crash #18

Open ayushagarwal95 opened 8 years ago

ayushagarwal95 commented 8 years ago

The application is crashing when being hosted on Heroku. This is probably because of the multiple connections being established to the same MongoDB instance. @BurnUalive, in app.js the line app.use(mongodb(connection_URI)) connects to the database and can be accessed in the routes as req.db, which could be passed to mongo-users.js. Currently, the connection is being established to the database in app.js and separate connections are being established in mongo-users.js.

shivam-g10 commented 8 years ago

Will change soon.