Why do I have no logs when starting my phoenix app release?

I am following the release guide and I am at the run part. I followed all of the previous steps successfully and was able to access the app through the browser by running it with MIX_ENV=prod mix phx.server. When I start the app on my machine in release mode (using _build/prod/rel/my_app/bin/my_app start) the web page does not respond (chrome shows a ERR_CONNECTION_REFUSED error) and I see no logs in my terminal, even though the release docs say that they should be sent to standard output. Are the logs sent to a file ?
My machine is on Fedora 38.

When prefixng the release start command with PHX_SERVER=true the server starts correctly, and I do see the logs in the standard output. So my complete launch command is
PHX_SERVER=true PHX_HOST=localhost MIX_ENV=prod _build/prod/rel/myapp/bin/myapp start.

It would have saved me a lot of time if it was explained in the docs.

2 Likes