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

Viewed 7419

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.

2 Answers

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.

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

Related