I’ve build my first release following the Deploying with Releases guide but when I try to run
_build/prod/rel/itj/bin/server, it doesn’t show any output, and doesn’t publish the port. “Freezes” isn’t the correct word to describe the issue, though, because when I press “ctrl+C”, it shows me “BREAK: (a)bort (A)bort with dump …” command palette and even reacts to the commands if I run some. For example, if I pick “(l)oaded”, it shows a whole bunch of modules, including mine (like
There is the code: GitHub - orsinium-labs/itj: IT Jobs aggregator
Or this is how I run the server without taskfile:
SECRET_KEY_BASE=ucFJTPEskCtTS6x12hJevgFp38RRVAyBTya1pmI1Ozz6743YqwCU00rFqVam34asd PHX_HOST=localhost PORT=3111 PHX_SERVER=true MIX_ENV=prod ./_build/prod/rel/itj/bin/server
And this is how I check its availability:
$ curl http://localhost:3111/ curl: (7) Failed to connect to localhost port 3111: Connection refused
If I replace
mix phx.server, everything works.
What can be the issue? Is there a way to see where and why it stopped?