Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Default (4000) port busy #962
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.
Tried all the options above and changed the port number in dev file. But the terminal is getting hung while executing mix phoenix.server
The below is my mix.exs file.
defmodule App.Mixfile do
def project do
Configuration for the OTP application.
You can use something like
I am missing something probably but I cannot make it work.
How can I define default port to 8081 while make it still possible to configure it from command line?