-
Notifications
You must be signed in to change notification settings - Fork 58
How To Change HTTP Port
Dimitrios Zorbas edited this page Nov 13, 2016
·
2 revisions
The default HTTP port is 4000
.
You can specify a different port with any of the following ways:
elixir --erl '-kitto port 5000' -S mix kitto.server
iex --erl '-kitto port 5000' -S mix
config :kitto, port: 5000
Change config/config.ex
to fetch the port from the environment.
config :kitto, port: {:system, "KITT0_PORT"}
Pass the env variable when starting the server
KITTO_PORT=4444 mix kitto.server