Yiting Li
Yiting Li

Reputation: 117

How to see logs when deploying to Heroku from Github?

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

Answers (3)

Jake Thakur
Jake Thakur

Reputation: 166

Another method of viewing logs that might be more convenient is:

  1. Go to Heroku app page (e.g. dashboard.heroku.com/apps/myAppName)

  2. Click on "more" at the top right of the page

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

diagram of steps to view logs online

Upvotes: 10

PanMan
PanMan

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

Jon Mountjoy
Jon Mountjoy

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

Related Questions