So I’m trying to understand how
config/runtime.exs works. If I put:
at the top of the file, then when I start my application on my local machine with
mix phx.server I can see it print out “in runtime.exs” in my terminal, and I can add other print statements to confirm that
runtime.exs is being executed after
dev.exs, which is being executed after
But if I set some configuration in
runtime.exs then it does not override the configuration set in
config.exs, and of course it also does not override the configuation set in
dev.exs. However, if I put some configuration in
dev.exs then it does override the configuration set in
My understanding is that
runtime.exs is the last file executed of these three, and the first file executed when the compiled application starts up, so I would think that configuration set in
runtime.exs would override configuration set in
dev.exs. But this is not happening.
Does anyone have any idea what is going on here?
I’m using Phoenix 1.6-rc.0, by the way.