Elixir 1.11 introduced config/runtime.exs
:
For runtime configuration, you can use the config/runtime.exs file. It is executed right before applications start in both Mix and releases (assembled with mix release).
It's a regular config file, but you can change it without needing to recompile your app.
This is great because nothing normally in prod.secret.exs
needs to be present at compile-time. We could potentially instruct users to:
mv config/{generated_config.exs,runtime.exs}
and they would not have to recompile Pleroma afterwards. This would save even more time during install time (!3406 (merged)) and make it a lot easier for users to edit their config.
Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/24