heroku[router]: at=error code=H10 desc="App crashed"

December 28, 2017

While trying to deploy a Spring application:

Problem:

heroku[router]: at=error code=H10 desc="App crashed” (…)

Solution:

Create a `Procfile` under the project root with the contents:

web: java -Dserver.port=$PORT $JAVA_OPTS -cp target/classes:target/dependency/*

The problem is that the application is not binding with the Heroku provided port.