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.
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.