Skip to content

Commit b81ca81

Browse files
committed
toggle maintenance mode for deployments
1 parent b84202d commit b81ca81

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

local/etc/uceap.d/_deploy_code.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
function _deploy_code() {
22
_assert_terminus_vars
3+
terminus drush -- state-set system.maintenance_mode TRUE
34
_sftp_code
45
terminus drush -- $DRUSH_TASK
6+
terminus drush -- state-set system.maintenance_mode FALSE
57
}

local/etc/uceap.d/_pantheon_deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ function _pantheon_complete_deployment() {
1010
terminus drush -- cache-rebuild
1111
terminus drush -- $DRUSH_TASK
1212
sleep 60
13+
terminus drush -- state-set system.maintenance_mode FALSE
1314
terminus env:clear-cache
1415
}

0 commit comments

Comments
 (0)