Herokuでdeploy時のdowntimeをゼロにする
preboot機能を有効にします。
heroku features:enable preboot
無効にするにはdisable
heroku features:disable preboot
注意事項として、Documentに
If you make database schema changes that require downtime, we recommend disabling the preboot feature, performing the changes and code push as usual, then re-enabling preboot.
と書かれていますが、database schemaに変更を加える場合はpreboot機能をdisableにすることが推奨されています。