Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to replica sets #19

Open
kcaylor opened this issue Jun 18, 2015 · 1 comment
Open

Connection to replica sets #19

kcaylor opened this issue Jun 18, 2015 · 1 comment

Comments

@kcaylor
Copy link
Contributor

kcaylor commented Jun 18, 2015

The connection assumes a single host and does not accommodate the possibility of a replica set. The easiest fix would be to allow for the use of a MONGO_URI when setting up the connection, which - if set - would be used to make the connection rather than building the connection using the MONGO_HOST, and MONGO_PORT variables. If MONGO_URI is not set, then the behavior would remain as in the current implementation. Thoughts?

@Alain1405
Copy link

This is a must for deployment on Heroku, as the main mongodb addons only export database credentials in a MONGO_URI format.
Isn't eve-mongoengine importing flask-pymongo? It supports MONGO_URI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants