Reputation: 107
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
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
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