n1colas
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.
Marked As Solved
n1colas
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.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









