Skip to content

Conversation

@chrissimon-au
Copy link
Contributor

Mix.env() is not available in runtime.exs, and it's not clear from the text where the production routing table should go. This clarifies that it should be in runtime.exs and demonstrates the use of config_env() (instead of Mix.env())

Fixes#1535.

I'm not sure if overwriting the config is idiomatic, or if the default single entry routing table should be in a non-prod check?

chrissimon-auand others added 2 commits June 20, 2021 15:04
`Mix.env()` is not available in runtime.exs, and it's not clear from the text where the production routing table should go. This clarifies that it should be in `runtime.exs` and demonstrates the use of `config_env()` (instead of `Mix.env()`)
@josevalimjosevalim merged commit 73e5872 into elixir-lang:masterJun 20, 2021
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Mix.env() is not available in runtime.exs

2 participants

@chrissimon-au@josevalim