Closed mtarnovan closed 5 years ago
@lpil definitely in favour of making everything configurable at runtime.
Fab! Do we want to move the mix config parts to runtime?
I'm not a big fan of mix config but would rather not have half-and-half configuration split across two approaches.
I think we can have a stacked approach.
Runtime > Mix > Defaults
Dig it. Shall we add this as mix config to make it uniform and then add the runtime configuration as a later PR?
Sounds great.
Hi @mtarnovan, if you'd like to move these options to mix config we can get this reviewed and merged in :)
Hi @lpil - hope I understood you correctly. This config key is now fetched in the order runtime > mix > defaults
.
@lpil I'm happy with this if you are.
Oops, I should have bumped the version in this pr. I'll make a new one.
The startup delay is currently dependent on compile time Mix configuration. Because dependencies are always compiled in
:prod
, this means that thisstartup_delay
will default to 5 seconds even in test envs. This PR makes this runtime configurable, so you can initialize it in your test env with a lower value, for example like this: