View logs for the one-time dyno hero that came out

Suppose I started a one-time process with this command: heroku run:detached "node do-some-stuff.js" --app my-app The output of the command is:

 /usr/local/heroku/lib/heroku/jsplugin.rb:108: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 Running `node do-some-stuff.js` detached... up, run.3728 Use `heroku logs -p run.3728 -a my-app` to view the output. 

I can heroku logs -p run.3728 -a my-app while the process is running, however, when the process exited it, it does not output anything. How to view logs for a completed process?

+5
source share
1 answer

If you use the registration plugin, just search run.3728 . For a short period of time, the logs will also be in heroku logs | grep run.3728 if you run heroku logs | grep run.3728 heroku logs | grep run.3728

0
source

Source: https://habr.com/ru/post/1245471/


All Articles