From 036500ecc52bfdc089ba0b824989837889c188b9 Mon Sep 17 00:00:00 2001 From: Allan Kong Date: Sat, 23 Aug 2025 21:39:42 -0700 Subject: [PATCH 1/2] Change --- Envoy.blade.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Envoy.blade.php b/Envoy.blade.php index fedad9ea..2fa615ee 100644 --- a/Envoy.blade.php +++ b/Envoy.blade.php @@ -1,14 +1,16 @@ @servers(['local' => ['127.0.0.1'], 'server' => ['root@143.198.129.111']]) +{{-- Full deploy flow --}} @story('deploy', ['skipBackup' => false]) @if(!$skipBackup) backup-database @endif update-code install-dependencies + build-frontend down perform-migration - deploy-frontend + push-frontend up @endstory @@ -48,12 +50,17 @@ php artisan migrate --force @endtask -@task('deploy-frontend', ['on' => 'local']) + +{{-- ===== Frontend Tasks ===== --}} +@task('build-frontend', ['on' => 'local']) set -e echo "Building frontend locally..." npm ci npm run build +@endtask +@task('push-frontend', ['on' => 'local']) + set -e echo "Copying compiled assets to server..." scp -r {{ __DIR__ }}/public/build root@143.198.129.111:/var/www/ComputerScienceResources.com/public @endtask From 1e625d10a74e675c0b3515fd16e4d3bf003fd59e Mon Sep 17 00:00:00 2001 From: Allan Kong Date: Sat, 23 Aug 2025 21:39:42 -0700 Subject: [PATCH 2/2] Change --- Envoy.blade.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Envoy.blade.php b/Envoy.blade.php index fedad9ea..a10b9696 100644 --- a/Envoy.blade.php +++ b/Envoy.blade.php @@ -1,6 +1,8 @@ @servers(['local' => ['127.0.0.1'], 'server' => ['root@143.198.129.111']]) +{{-- Full deploy flow --}} @story('deploy', ['skipBackup' => false]) + build-frontend @if(!$skipBackup) backup-database @endif @@ -8,7 +10,7 @@ install-dependencies down perform-migration - deploy-frontend + push-frontend up @endstory @@ -48,12 +50,17 @@ php artisan migrate --force @endtask -@task('deploy-frontend', ['on' => 'local']) + +{{-- ===== Frontend Tasks ===== --}} +@task('build-frontend', ['on' => 'local']) set -e echo "Building frontend locally..." npm ci npm run build +@endtask +@task('push-frontend', ['on' => 'local']) + set -e echo "Copying compiled assets to server..." scp -r {{ __DIR__ }}/public/build root@143.198.129.111:/var/www/ComputerScienceResources.com/public @endtask