Reputation: 117
I have a nodejs repo on github and I have it connected with Heroku with the auto dpeloy option. Then when I push to master it will be deploy to Heroku server also. My question is how can I see the logs of my application? I can only find the build logs.
If it is a Heroku repo then I can do a Heroku logs
but now I only have my git repo.
Thanks!
Upvotes: 10
Views: 4234
Reputation: 166
Another method of viewing logs that might be more convenient is:
Go to Heroku app page (e.g. dashboard.heroku.com/apps/myAppName)
Click on "more" at the top right of the page
Click on "view logs" at the top of this menu
This enables you to view the app's logs on the Heroku online GUI, without needing to install the Heroku CLI.
Upvotes: 10
Reputation: 1314
If you mean build output (not regular running logs), they are in the Heroku Dashboard: https://devcenter.heroku.com/articles/github-integration#where-can-i-view-build-output although I'd like to have a way to see them command line too.
Upvotes: 1
Reputation: 4526
You have probably enabled GitHub integration on your Heroku app. You still have a Heroku app right - that's what you enabled the GitHub integration on. If your app's name is foo-bar-123
then heroku logs -a foo-bar-123
should do it.
Upvotes: 12