Skip to content

Distillery ENV vars not working for Mongo Adapter  #147

Open

Description

@mthomps4

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

Activity

  1. ankhers commented on May 11, 2018

    @ankhers
    Collaborator

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions