Move deployment files to scripts folder for better organization
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
@@ -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.
|
||||
#>
|
||||
Reference in New Issue
Block a user