Application not getting loaded

Thanks for the answers. But I still don’t understand.
It seems like compile_env! just doesn’t work at all…

Using fetch_env doesn’t help at all as it will just return :error. It will compile, yes, but the app still won’t be loaded and therefore values will still be empty. I just don’t understand why mix doesn’t load the application.
Shouldn’t it load the app on compile? Or when the task is run?
It looks like mix simply ignores it at all!

I think I will open an issue in elixir repo as I am starting to get really frustrated and the docs are not helpful here at all :\