Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

heroku

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.

like image 544
Cyatophilum Avatar asked Aug 06 '17 13:08

Cyatophilum


1 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.

like image 183
Lukasz Czerwinski Avatar answered Jan 01 '23 06:01

Lukasz Czerwinski