Today I learned
  • Github
  • Linkedin
  • Nomad Life(Travel Blog)
  • About
Sign in Subscribe

cowboy

A collection of 1 post
phoenix

Start Phoenix app with cowboy server on different port

To run phoenix app on a custom port other than port 4000, tweak your config file for respective environment(dev/prod/test) to the following: config :my_app, MyApp.Endpoint, http: [port: {:system, "PORT"}], Then from the terminal: $ PORT=4001 mix phoenix.server $ PORT=4002 mix phoenix.server
23 Nov 2015
Page 1 of 1
Today I learned © 2025
Powered by Ghost