IEx.configure doesn't work in release

I was trying to customize iex prompt so that it will show different env name(by reading it from system env) in release mode. The purpose is to alert myself that I am interacting with a shell in one env(so that it’s harder to mistake production shell as staging shell).

However it looks like IEx.configure has no effect in remote console. I wonder if someone know what’s reason? And is there other workaround to do the customize prompt thing in release?

Thank you very much.