Hi ,
I followed instructions at distillery docs for creating a new phoenix project.
However on running the release, i can’t see the endpoint listening on
any port.
Elixir version : 1.8.2
( from Erlang Solutions )
distillery : 2.1.0
OS : Ubuntu 18.04 64 bit
Steps
mix phx.new dis_one --no-ecto --no-html --no-webpack
# added distillery 2.0 as mix dep
# uses distillery version 2.1.0 , in mix.lock
# followed instructions in
# https://hexdocs.pm/distillery/guides/phoenix_walkthrough.html
mix deps.get
MIX_ENV=prod SECRET_KEY_BASE="sec" mix compile
mix distillery.init
MIX_ENV=prod SECRET_KEY_BASE="sec" mix distillery.release
_build/dev/rel/dis_one/bin/dis_one foreground
Now if I see netstat -ntlp
i don’t see any listeners.
Any pointers ? Do I need to set up parameters like PORT
and put those in
config manually in the endpoint.ex
init
?