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

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/* <path to main class>
The problem is that the application is not binding with the Heroku provided port.

Comments

Popular posts from this blog

spring @async causing BeanCurrentlyInCreationException

Hibernate - HibernateException: createQuery is not valid without active transaction