Hi, I’m trying to deploy on heroku my app without luck. I’ve followed the phoenix documentation but it doesn’t work.
This is the relevant part of my prod.exs
file:
config :app_core, AppCoreWeb.Endpoint,
force_ssl: [rewrite_on: [:x_forwarded_proto]],
server: true,
cache_static_manifest: "priv/static/cache_manifest.json",
url: [host: System.get_env("HOST"), scheme: "https", port: 443],
secret_key_base: secret_key_base
This is my Procfile
:
web: MIX_ENV=prod mix do ecto.migrate, phx.server
This is the error I’m getting:
2019-06-21T19:03:47.553727+00:00 heroku[web.1]: Starting process with command `MIX_ENV=prod mix do ecto.migrate, phx.server`
2019-06-21T19:03:50.926636+00:00 app[web.1]:
2019-06-21T19:03:50.926665+00:00 app[web.1]: 19:03:50.926 [info] Already up
2019-06-21T19:03:51.223866+00:00 app[web.1]: 19:03:51.223 [info] Access AppCoreWeb.Endpoint at https://app-core.herokuapp.com
2019-06-21T19:03:37.402509+00:00 heroku[web.1]: State changed from starting to crashed
2019-06-21T19:03:37.407991+00:00 heroku[web.1]: State changed from crashed to starting
2019-06-21T19:03:37.297838+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-06-21T19:03:37.297929+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-06-21T19:03:37.377379+00:00 heroku[web.1]: Process exited with status 137