I want to deploy two phoenix apps on two different ports. it works perfectly in dev mode. but when I create a release with distillary it only serves one app on the given port. here is my configuration rel/config for these apps:
release :backend do
set version: "0.1.0"
set applications: [
:runtime_tools,
backend: :permanent
]
end
release :admin do
set version: "0.1.0"
set applications: [
:runtime_tools,
admin: :permanent,
backend: :permanent
]
end
I’ve been bitten by this before too, although with Ecto Repo configuration instead of a Phoenix Endpoint. One way that this would surface is by checking the actual live configuration with a command like:
Application.get_all_env(:admin)
Although of course that won’t tell you what changed the configuration.