I’m running WSL on Windows 10, and cannot run :observer (although I think there may be a way now).
I just installed, using asdf:
Erlang/OTP 21 [erts-10.2.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Elixir 1.10.0-dev (495148e) (compiled with Erlang/OTP 20),
and then ran
MIX_ENV=prod mix phx.server
runs the app and works just fine:
warning: :simple_one_for_one strategy is deprecated, please use DynamicSupervisor instead
(elixir) lib/supervisor.ex:613: Supervisor.init/2
(elixir) lib/supervisor.ex:565: Supervisor.start_link/2
(phoenix) lib/phoenix/socket/pool_supervisor.ex:31: Phoenix.Socket.PoolSupervisor.start_pooled/3
(stdlib) supervisor.erl:379: :supervisor.do_start_child_i/3
(stdlib) supervisor.erl:365: :supervisor.do_start_child/2
// ... warning repeated for multiple db connections to Google cloud_sql_proxy
12:40:05.775 [info] Running GjwappWeb.Endpoint with cowboy 2.6.3 at 0.0.0.0:4000 (http)
12:40:05.868 [info] Access GjwappWeb.Endpoint at http://[http://192.168.1.11:4000]:4000
and the all app functions work in the browser.
Then, the mix release
builds seemingly ok:
MIX_ENV=prod mix release beta1
…but when I run it, I get the same warning (… :simple_one_for_one strategy…) and I can see all db connections established, but no endpoint access IO message:
warning: :simple_one_for_one strategy is deprecated, please use DynamicSupervisor instead
(elixir) lib/supervisor.ex:613: Supervisor.init/2
(elixir) lib/supervisor.ex:565: Supervisor.start_link/2
(phoenix) lib/phoenix/socket/pool_supervisor.ex:31: Phoenix.Socket.PoolSupervisor.start_pooled/3
(stdlib) supervisor.erl:379: :supervisor.do_start_child_i/3
(stdlib) supervisor.erl:365: :supervisor.do_start_child/2
… it just hangs there.
In a separate shell I connect
_build/prod/rel/beta1/bin/beta1 remote
and see a lot of processes, but I’m not sure where to begin.