From 60874fcc1e606f2c2b21b85cab5cb4d6dc0443df Mon Sep 17 00:00:00 2001 From: Kevin Wenger Date: Fri, 8 Jul 2022 11:22:25 +0200 Subject: [PATCH] update maintenance mode to run on current instead of release The maintenance mode "on" must be run on the current code base instead of the new release code base --- lib/capdrupal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capdrupal.rb b/lib/capdrupal.rb index 87576f0..7ad33d9 100644 --- a/lib/capdrupal.rb +++ b/lib/capdrupal.rb @@ -153,7 +153,7 @@ desc "Remove maintenance mode" task :off do on roles(:app) do - within release_path.join(fetch(:app_path)) do + within current_path.join(fetch(:app_path)) do execute :drush, "state:set system.maintenance_mode 0 -y" execute :drush, 'cr' end