Main website
Government Drupal Developers NetworkCommunity
Resource library
Guide

Zero-downtime deploys with drush deploy

The deploy sequence we use across 40 council sites, including maintenance-mode-free updates.

3
LT
Liam Tremblay

Canadian Digital Service · 25 Aug 2026

The sequence

set -euo pipefail
drush state:set system.maintenance_mode 0
drush deploy -y
drush cache:rebuild

drush deploy runs updatedb, config:import and your hook_deploy_NAME() functions in the right order. Use deploy hooks for content changes instead of update hooks.

Join GDDN to upvote and share your own resources.