Total noob question here, but I'm working through 'programming-phoenix' using linode (arch) - I'm currently having the following problem:
When I close my ssh pipe and log back in later to resume the tutorial, the server doesn't pickup new changes.
I then try to restart the server using $mix pheonix.server, I get the following error:
** (Mix) Could not start application hello: Hello.start(:normal, []) returned an error: shutdown: failed to start child: Hello.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Server
** (EXIT) shutdown: failed to start child: {:ranch_listener_sup, Hello.Endpoint.HTTP}
** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
** (EXIT) {:listen_error, Hello.Endpoint.HTTP, :eaddrinuse}
Which I guess is correct, since the server is still running, so I have to do:
$ps -e | grep beam
$kill -9 <beam-pid(s)>
Is there a command to terminate the server using mix, that I'm missing?