Start Phoenix app with cowboy server on different port
Yep! Make sure you set the mix config to reference the env port, i.e. config :my_app, MyApp.Endpoint, http: [port: {:system, “PORT”}], Then from the terminal: $ PORT=4001 mix phoenix.server $ PORT=4002 mix phoenix.server $ PORT=4003 mix phoenix.server