-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fixes defaults not being overriden by config #2
Conversation
password: "postgres", | ||
database: "authsense_test", | ||
size: 10 | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw:
database_url = System.get_env("DATABASE_URL") || "postgres://postgres:postgres@localhost/authsense_test"
config :authsense, Authsense.Test.Repo,
url: database_url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...but that maybe for another PR, i dunno
As per thy bidding
|
use Mix.Config | ||
|
||
config :authsense, Authsense.Test.User, | ||
repo: Authsense.Test.Repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when is the dev
environment ever used in a Hex package like this?
The existence of |
I am humbled by your appreciation. |
Ah, right, carry on |
This also adds an error when Authsense is not configured at compile time. It was previously raising a no match error at runtime when it wasn't configured.