Detached model not connectin Phoenix

mix phx.server lets me connect to mydomain:4000

but detached mode will not

PORT=4000 MIX_ENV=prod elixir --erl “-detached” -S mix phx.server

What is wrong?

As you are starting :prod, have you enabled the server in the endpoint configuration?

Here’s my endpoint.

config :hello, HelloWeb.Endpoint,
url: [host: “”, port: 4000],
cache_static_manifest: “priv/static/cache_manifest.json”

I did a ps and no phoenix process found.

I got it everything needs to be compiled first. Now it’s working, easiest deployment, no need for distillery.