From 2f4ad222fa346c853f6e96d655837b3278442145 Mon Sep 17 00:00:00 2001 From: Alexandre D'Eschambeault Date: Wed, 8 Feb 2023 11:06:44 -0500 Subject: [PATCH] feat: allow deployment to be performed in two steps Adds two commands, deploy:prepare and deploy:complete, to be able to deploy an application in two steps when server configuration needs to before activating the application. --- Envoy.blade.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Envoy.blade.php b/Envoy.blade.php index f68af41..2499d6d 100644 --- a/Envoy.blade.php +++ b/Envoy.blade.php @@ -35,6 +35,7 @@ @endtask @macro('deploy') + {{-- deploy:prepare --}} assert:commit deploy:starting deploy:check @@ -52,6 +53,39 @@ deploy:building deploy:build deploy:built + + {{-- deploy:complete --}} + deploy:publishing + deploy:symlink + deploy:publish + deploy:cronjobs + deploy:published + deploy:finishing + deploy:cleanup + deploy:finished +@endmacro + +@macro('deploy:prepare') + assert:commit + deploy:starting + deploy:check + deploy:backup + deploy:started + deploy:provisioning + deploy:fetch + deploy:release + deploy:git + deploy:link + deploy:copy + deploy:composer + deploy:npm + deploy:provisioned + deploy:building + deploy:build + deploy:built +@endmacro + +@macro('deploy:complete') deploy:publishing deploy:symlink deploy:publish