Phoenix app using distillery do not start cowboy listener

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 ?

Resolved.
I missed to edit the application name in prod.exs while following the instructions

config :dis_one, DisOneWeb.Endpoint,
  http: [port: System.get_env("PORT") || 4000],
  url: [host: "localhost", port: System.get_env("PORT")], # This is critical for ensuring web-sockets properly authorize.
  # cache_static_manifest: "priv/static/cache_manifest.json",
  server: true,
  root: ".",
  version: Application.spec(:dis_one, :vsn)   <------ Missed to edit this 

Thanks