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 for Common Runtime apps. Some apps aren't compatible with Preboot, so please be sure to check the documentation carefully.

Ensure that your web process only runs the necessary commands 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