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. #>