Cyatophilum
Cyatophilum

Reputation: 107

How to debug an Heroku app, since logs don't help att all?

I'm trying to deploy a nodejs app on heroku for the first time, but I'm stuck at the command "heroku open" since it gives me an application error and no information as to where it crashed. The app runs locally without problem. How would you proceed to debug this? Thanks for your advice and time.

Upvotes: 8

Views: 8583

Answers (2)

Lukasz Czerwinski
Lukasz Czerwinski

Reputation: 15432

If running heroku local does not help, run a remote shell: heroku run -a <your app name> /bin/bash, and there run npm start to see the logs and debug the issue on the Heroku server.

Upvotes: 11

Lukasz Czerwinski
Lukasz Czerwinski

Reputation: 15432

When running your app "locally", have you tried running heroku local? This runs the app through Heroku, but on local server.

Upvotes: 5

Related Questions