phoenixframework/phoenix — pull request #91 by scrogson (2014-05-23 17:58:07+00:00)
Title: Add stop/shutdown task to Router

$ iex -S mix phoenix.start
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe]
[kernel-poll:false]

...

Running Elixir.PhoenixDev.Router with Cowboy on port [dispatch: [_: [{:_,
Plug.Adapters.Cowboy.Handler, {PhoenixDev.Router, []}}]], port: 4000, ssl:
false, consider_all_requests_local: true]
Interactive Elixir (0.13.2) - press Ctrl+C to exit (type h() ENTER for help)

iex(1)> PhoenixDev.Router.stop
Elixir.PhoenixDev.Router has been stopped
:ok
iex(2)>