I am using OS X and I have tried (many time with computer restarts) to run phoenix server on port 4000 and each time I receive information:
[error] Running PhoenixJobs.Endpoint with Cowboy on port 4000 (http) failed, port already in use
=INFO REPORT==== 13-Jun-2015::00:35:13 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application phoenix_jobs: PhoenixJobs.start(:normal, []) returned an error: shutdown: failed to start child: PhoenixJobs.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Server
** (EXIT) shutdown: failed to start child: :http
** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, :eaddrinuse}
(ranch) src/ranch_acceptors_sup.erl:30: :ranch_acceptors_sup.init/1
(stdlib) supervisor.erl:243: :supervisor.init/1
(stdlib) gen_server.erl:306: :gen_server.init_it/6
(stdlib) proc_lib.erl:237: :proc_lib.init_p_do_apply/3
Port 4000 isn't busy because in other time I can use this port to run other apps (in different language).
I am using the latest phoenix framework version and Elixir 1.0.4.
Maybe you can add support to OPTIONAL port numer in config (for development environment). When I changed config and pass port 4001, application have started without problems.
I am using OS X and I have tried (many time with computer restarts) to run phoenix server on port 4000 and each time I receive information:
Port 4000 isn't busy because in other time I can use this port to run other apps (in different language).
I am using the latest phoenix framework version and Elixir 1.0.4.
Maybe you can add support to OPTIONAL port numer in config (for development environment). When I changed config and pass port 4001, application have started without problems.