Why does my app crash after deployment?

Issue

My app crashes after deployment. I have not made any changes to the start-up scripts. My app has heroku/exec buildpack, is it related?

Resolution

If your app meets all the following conditions, it is possible that your app will crash.

  • heroku/exec buildpack is set
  • HEROKU_EXEC_DEBUG config var is not 1
  • There is a bash script located in /.profile.d/ and the script includes set -e command

To avoid the crash , you can choose one of the following:

  • Remove -e option from set command
  • Remove heroku/exec buildpack
  • Set HEROKU_EXEC_DEBUG as 1

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support