From d1311ffc74e5c42b541b30be6b326ae340f6c313 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Mon, 27 Oct 2025 19:25:34 -0400 Subject: [PATCH] Move deployment files to scripts folder for better organization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move Deploy-PepApi.ps1 to scripts/ - Move DEPLOY.md to scripts/ - Update all script path references to scripts/Deploy-PepApi.ps1 - Update deployment documentation with correct paths - Add clarification to run from repository root The deploy script already had logic to detect the scripts subfolder, this change improves repository organization by separating deployment tooling from source code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- DEPLOY.md => scripts/DEPLOY.md | 10 +++++----- Deploy-PepApi.ps1 => scripts/Deploy-PepApi.ps1 | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) rename DEPLOY.md => scripts/DEPLOY.md (94%) rename Deploy-PepApi.ps1 => scripts/Deploy-PepApi.ps1 (95%) diff --git a/DEPLOY.md b/scripts/DEPLOY.md similarity index 94% rename from DEPLOY.md rename to scripts/DEPLOY.md index c3bb5a3..bef3a8b 100644 --- a/DEPLOY.md +++ b/scripts/DEPLOY.md @@ -11,8 +11,8 @@ ### Deploy as Windows Service ```powershell -# Run as Administrator -powershell -ExecutionPolicy Bypass -File Deploy-PepApi.ps1 -OpenFirewall +# Run as Administrator from repository root +powershell -ExecutionPolicy Bypass -File scripts/Deploy-PepApi.ps1 -OpenFirewall ``` This will: @@ -27,7 +27,7 @@ This will: ```powershell # Custom service name and location -powershell -ExecutionPolicy Bypass -File Deploy-PepApi.ps1 ` +powershell -ExecutionPolicy Bypass -File scripts/Deploy-PepApi.ps1 ` -ServiceName "MyPepApi" ` -InstallDir "D:\Services\PepApi" ` -Urls "http://*:9000" ` @@ -210,7 +210,7 @@ netstat -ano | findstr :8085 Stop-Process -Id [PID] -Force # Or deploy on different port -Deploy-PepApi.ps1 -Urls "http://*:9000" +scripts/Deploy-PepApi.ps1 -Urls "http://*:9000" ``` --- @@ -221,7 +221,7 @@ To update the service with new code: ```powershell # Simply run the deploy script again -powershell -ExecutionPolicy Bypass -File Deploy-PepApi.ps1 -OpenFirewall +powershell -ExecutionPolicy Bypass -File scripts/Deploy-PepApi.ps1 -OpenFirewall ``` The script will: diff --git a/Deploy-PepApi.ps1 b/scripts/Deploy-PepApi.ps1 similarity index 95% rename from Deploy-PepApi.ps1 rename to scripts/Deploy-PepApi.ps1 index 1cce02c..a7325fd 100644 --- a/Deploy-PepApi.ps1 +++ b/scripts/Deploy-PepApi.ps1 @@ -3,10 +3,10 @@ Deploy PepApi as a Windows Service Examples: # Run from repository root: - powershell -ExecutionPolicy Bypass -File Deploy-PepApi.ps1 -ServiceName PepApi -InstallDir C:\Services\PepApi -Urls "http://*:8085" -OpenFirewall + powershell -ExecutionPolicy Bypass -File scripts/Deploy-PepApi.ps1 -ServiceName PepApi -InstallDir C:\Services\PepApi -Urls "http://*:8085" -OpenFirewall # Custom installation: - powershell -ExecutionPolicy Bypass -File Deploy-PepApi.ps1 -ServiceName PepApiService -InstallDir D:\MyServices\PepApi -Urls "http://*:8085" -OpenFirewall + powershell -ExecutionPolicy Bypass -File scripts/Deploy-PepApi.ps1 -ServiceName PepApiService -InstallDir D:\MyServices\PepApi -Urls "http://*:8085" -OpenFirewall Requires: dotnet SDK/runtime installed and administrative privileges. #>