How can I avoid downtime during dyno restarts?

Issue

My application boot time is slow and leaves the app unavailable during dyno restarts.

Resolution

For zero downtime deploys and restarts we recommend using Preboot https://devcenter.heroku.com/articles/preboot for Common Runtime apps. There are some apps that aren't compatible with Preboot so please be sure to check the documentation carefully.

It can also help to make sure that your web process only runs commands that are necessary to start a web server. For example, any asset compilation or build steps (e.g. webpack for Node apps) should be moved to the build phase. For Node JS applications specifically, we have some guidance on this here: https://devcenter.heroku.com/articles/node-best-practices#hook-things-up

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
Terms of Service Privacy Cookies © 2018 Salesforce.com