I’ve updated my
fly.toml env section for the PHX_HOST entry and it does not update. Instead the env variable remains the internal app host name of
"PHX_HOST" => "b4b-guide.fly.dev",.
I’ve removed the variable, changed it and added other environment variables and ended up having to use a separate variable name to get past the problem.
- Fly client version: 0.0.323 on macOS Big Sur installed with brew
- I’ve updated my fly.toml env section to have a different value than
- I’ve added other variables to the env file and they were visible
- To check the env of the deployment I run the following:
fly ssh console app/bin/app remote iex> System.get_env()
# redacted... [env] PORT = "8080" # For some reason fly is not updating the PHX_HOST variable even if I remove it PHX_HOST = "www.myhost.com" PHOENIX_HOST = "www.myhost.com" # redacted ...
To attempt to sync the above
fly.toml changes to the
PHX_HOST I run
fly deploy to no avail.
No matter the value that is set for
PHX_HOST in the
fly.toml it remains the original value that was seeded for the application by the flyctl cli.