Hello, I’m using Distillery to deploy a Phoenix app, and can’t find a way to debug something that is obviously going wrong.
The release is created without any problem, it generates the binaries and I can open a console. Both start and foreground work without complaining, when I connect to localhost:8080 I get nothing. ping returns pong, I don’t see any crash log.
Only thing I did myself is writing a post hook that creates the DB before running the migrations
def create do
{:ok, _} = Application.ensure_all_started(:owl)
Owl.Repo.__adapter__.storage_up(Owl.Repo.config)
end
Is there a way I can inspect the binary? Logs somewhere, a -vvv option, a way to know the web server started?
Quite lost right now.
Do you see the “Starting cowboy at port …” message when you start with foreground? If not you’re probably missing the server: true configuration for the endpoint:
Thank you, I updated from exrm to distillery and couldn’t figure out why the application was starting but the webserver wasn’t responding, this was it.