Starting Phoenix server in a different port than 4000


You would like start a phoenix application in a port different from the default 4000, by using something similar to the rails:


You will need to change the config/dev.exs file to include the following:

and then start the server with:

Taken from the answer here