I’m trying to push
mix release-generated binaries to my VPS server.
The same binaries run just fine with
MIX_END=prod in my local machine.
However unfortunately once I push the tar.gz to the server and run it. It silently fails in that machine.
- Same behavior of server stopping silently also happens when I build the release in the server
- My local machine & server run the same OS and architecture.
$ ./bin/myapo start 10:26:18.803 [info] Running MyappWeb.Endpoint with cowboy 2.7.0 at :::4000 (http) 10:26:18.807 [info] Access MyappWeb.Endpoint at http://localhost
I must be missing something rather basic but all ENV variables seem to be there and the only non-default phoenix dependency is
I tried with a vanilla phoenix repo
release and it works just fine in that same VPS pointing to the same DB.
How can one debug the binary? Or maybe some of the info at
erl_crash.dump can help?
I tried to set the following without luck
#config/prod.exs config :logger, level: :debug