Skip to content

Error while deploying to Heroku #74

@lucaskalves

Description

@lucaskalves

I have an issue to deploy a simple application to Heroku. Heroku always responds with the following error:

2017-08-18T18:36:18.054272+00:00 heroku[web.1]: Starting process with command `mix run --no-halt`
2017-08-18T18:36:22.356225+00:00 app[web.1]:
2017-08-18T18:36:22.356245+00:00 app[web.1]: 18:36:22.351 [info]  Starting Elixir.JesseAPI with Cowboy on http://127.0.0.1:59996
2017-08-18T18:37:18.586685+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2017-08-18T18:37:18.586685+00:00 heroku[web.1]: Stopping process with SIGKILL
2017-08-18T18:37:18.695398+00:00 heroku[web.1]: Process exited with status 137

Here is my config.exs (using {:system, "PORT"} was causing other issues):

use Mix.Config

config :maru, JesseAPI,
    http: [port: System.get_env("PORT")]

And here is my elixir_buildpack.config:

# Erlang version
erlang_version=20.0

# Elixir version
elixir_version=1.5.0

# Always rebuild from scratch on every deploy?
always_rebuild=true

Does anyone have any clue of what may be going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions