Edeliver start production succesfull but server doesnt start

I am testing a deploy example on my machine. I have a virtualbox ubuntuserver. I follow that guide
How To Automate Elixir-Phoenix Deployment with Distillery and edeliver on Ubuntu 16.04 | DigitalOcean,

How can i debug what is wrong ?

Start production seems ok.

myproject$ mix edeliver start production

EDELIVER MYPROJECT WITH START COMMAND

-----> starting production servers

production node:

user : deneme
host : 192.168.1.90
path : /home/deneme/app_release
response:

START DONE!

but server doesnt start

deneme@ubuntu:~$ netstat -plnt
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 2358/epmd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::4369 :::* LISTEN 2358/epmd
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:5432 :::* LISTEN -

Edeliver config

APP=“myproject”

BUILD_HOST=“192.168.1.90”
BUILD_USER=“deneme”
BUILD_AT=“/home/deneme/app_build”

PRODUCTION_HOSTS=“192.168.1.90”
PRODUCTION_USER=“deneme”
DELIVER_TO=“/home/deneme/app_release”

pre_erlang_get_and_update_deps() {
local _prod_secret_path=“/home/deneme/app_config/prod.secret.exs”
if [ “$TARGET_MIX_ENV” = “prod” ]; then
__sync_remote "
ln -sfn ‘$_prod_secret_path’ ‘$BUILD_AT/config/prod.secret.exs’
"
fi
}

Operating systems (on build ubuntu 14.04 / deploy host ubuntu 16.04):

I dont know why but it resolved after i change my prod config.

old config

    config :myproject, MyprojectWeb.Endpoint,
  http: [port: 4000],
  load_from_system_env: true,
  url: [host: "192.168.1.90", port: 80],
  cache_static_manifest: "priv/static/cache_manifest.json",
  server: true,
  code_reloader: false

new config

config :myproject, MyprojectWeb.Endpoint,
  http: [port: 4000],
  url: [host: "192.168.1.90", port: 80],
  cache_static_manifest: "priv/static/manifest.json",
  server: true,
  code_reloader: false
1 Like