small medium large xlarge

Generic-user-small
07 Sep 2017, 07:45
Pierre LAURENT (1 post)

Thank you for this great book.

In Chapter, “Call the Logic from the Interface”, i did follow the instructions by updating index.html.eex, then updating the route in router.ex and finally the PageController. Everything is running smoothly (i can see the page) and i understood we have to check that game process doesn’t exist.

I have the following error, did i misunderstood sth ? Where does :game_supervisor comes from ?

iex -S mix phx.server
Erlang/OTP 20 [erts-9.0.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

[info] Running IslandsInterfaceWeb.Endpoint with Cowboy using http://0.0.0.0:4000
Interactive Elixir (1.5.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 09:41:56 - info: compiled 6 files into 2 files, copied 3 in 774 ms

nil
iex(2)> Supervisor.which_children(:game_supervisor)
** (exit) exited in: GenServer.call(:game_supervisor, :which_children, :infinity)
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (elixir) lib/gen_server.ex:766: GenServer.call/3

Here is deps.tree

$ mix deps.tree

islands_interface
├── gettext ~> 0.11 (Hex package)
├── islands_engine (../islands_engine)
├── phoenix_pubsub ~> 1.0 (Hex package)
├── cowboy ~> 1.0 (Hex package)
│   ├── cowlib ~> 1.0.2 (Hex package)
│   └── ranch ~> 1.3.2 (Hex package)
├── phoenix_html ~> 2.10 (Hex package)
│   └── plug ~> 1.0 (Hex package)
│       ├── cowboy ~> 1.0.1 or ~> 1.1 (Hex package)
│       └── mime ~> 1.0 (Hex package)
├── phoenix ~> 1.3.0 (Hex package)
│   ├── cowboy ~> 1.0 (Hex package)
│   ├── phoenix_pubsub ~> 1.0 (Hex package)
│   ├── plug ~> 1.3.3 or ~> 1.4 (Hex package)
│   └── poison ~> 2.2 or ~> 3.0 (Hex package)
└── phoenix_live_reload ~> 1.0 (Hex package)
    ├── file_system ~> 0.2 (Hex package)
    └── phoenix ~> 1.0 (Hex package)
You must be logged in to comment