Skip to content

Troubles getting started #155

@brandonparsons

Description

@brandonparsons

Hi there,

I'm trying to get started for the first time with conform. Having some trouble with what I thought would be the easy part! :)

I have an umbrella app - one of the applications inside houses an ecto repo. I decided to try to start pulling in conform in that app as it would be easiest to know if something was broken.

I've created shared_repo.schema.exs and shared_repo.dev.conf. If I use mix conform.effective, I see some values I expect:

shared_repo: [
    {SharedRepo.Repo,
     [
       adapter: Ecto.Adapters.Postgres,
       database: "myapp_dev",
       hostname: "localhost",
       loggers: [
         {Ecto.LogEntry,
          :log,
          []}
       ],
       pool_size: 10
     ]},
    {:ecto_repos,
     [SharedRepo.Repo]}
  ]

However, when I attempt to boot the app, it blows up as it can't find a database key inside the configuration for the repo. I'm a bit confused and don't know what to do next. The app boots fine just using a standard config.exs and config.dev.exs.

Any help you could provide would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions