Search code examples
herokuheroku-cli

How to view output of postdeploy script on heroku?


I specified a postdeploy script in my app.json. The build info in the heroku web interface shows "There was an issue while running the post deploy script."

{
  "scripts": {
    "postdeploy": "./bin/heroku_postdeploy"
  },

How can I get the output / logs of my postdeploy script, to see what went wrong? heroku logsdoes not show the output.

When I run the postdeploy script via heroku CLI everything works fine.


Solution

  • In case of a failure of the dynos (in my case mixed paid and non paid dynos), the post deploy log is not displayed, although the error said the postdeploy script had an error. Heroku support figured that out. They said, they're going to make the errors and logs better in the future.

    At the moment you would need to contact support. But first check, if you have your dynos configured correctly.