Skip to content

Instantly share code, notes, and snippets.

@knewter
Created April 10, 2014 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knewter/10432898 to your computer and use it in GitHub Desktop.
Save knewter/10432898 to your computer and use it in GitHub Desktop.
BeamToolbox.Router.start
>> Running Elixir.BeamToolbox.Router with Cowboy with [port: nil, ssl: false]
18:49:54.065 [error] CRASH REPORT Process <0.285.0> with 0 neighbours exited with reason: bad argument in gen_server:init_it/6 line 330
18:49:54.066 [error] Supervisor {<0.283.0>,ranch_listener_sup} had child ranch_acceptors_sup started with ranch_acceptors_sup:start_link('Elixir.BeamToolbox.Router.HTTP', 100, ranch_tcp, [{port,nil},{ssl,false}]) at undefined exit with reason badarg in context start_error
{:error,
{{:shutdown, {:failed_to_start_child, :ranch_acceptors_sup, :badarg}},
{:child, :undefined, {:ranch_listener_sup, BeamToolbox.Router.HTTP},
{:ranch_listener_sup, :start_link,
[BeamToolbox.Router.HTTP, 100, :ranch_tcp, [port: nil, ssl: false],
:cowboy_protocol,
[env: [dispatch: [{:_, [],
[{:_, [], Plug.Adapters.Cowboy.Handler, {BeamToolbox.Router, []}}]}]],
compress: false]]}, :permanent, 5000, :supervisor,
[:ranch_listener_sup]}}}
iex(2)> Config.for(BeamToolbox)
** (UndefinedFunctionError) undefined function: Config.for/1
Config.for(BeamToolbox)
iex(2)> Phoenix.Config.for(BeamToolbox)
BeamToolbox.Config.Dev
iex(3)> Phoenix.Config.for(BeamToolbox).router
[port: "4000", ssl: false]
iex(4)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment