You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+13
Original file line number
Diff line number
Diff line change
@@ -318,6 +318,19 @@ If you're using mongoDB you will need to add a database to your app:
318
318
319
319
heroku addons:create mongolab
320
320
321
+
Note: if you get an `Error: No valid replicaset instance servers found` you need to modify moongose connection options in config/environment/production.js as follows:
One of the odd things about the Node driver is that the default timeout for replica set connections is only 1 second, so make sure you're setting it to something more like 30s like in this example.
332
+
333
+
321
334
Your app should now be live. To view it run `heroku open`.
0 commit comments