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

Distillery ENV vars not working for Mongo Adapter #147

Open
mthomps4 opened this issue Dec 5, 2017 · 1 comment
Open

Distillery ENV vars not working for Mongo Adapter #147

mthomps4 opened this issue Dec 5, 2017 · 1 comment

Comments

@mthomps4
Copy link

mthomps4 commented Dec 5, 2017

ENV vars are not making a full connection through the Mongo.Ecto Adapter.
Distillery build with ENV Vars:

REPLACE_OS_VARS, 
DB_NAME, 
DB_HOST, 
DB_PORT, 
HOST, 
PORT

Returning Empty results -- Acts like Mongo is connected?

Test case built here:
https://github.com/mthomps4/MongoEcto-Envtest
Details outlined in README.md

@ankhers
Copy link
Collaborator

ankhers commented May 11, 2018

This is happening because we are taking the configuration at compile time here. I believe this is the expected behaviour for Ecto 2.1. Once I can finally update things for Ecto 2.2+, you should not have this problem anymore.

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

No branches or pull requests

2 participants