feat: Improve Windows deployment and fix production paths
Data Entry App: - Fix shared path finding for both dev and production environments - Add base URL support for IIS subdirectory deployment (/data-entry/) - Use import.meta.env.BASE_URL in router for correct path handling - Add email-validator and python-jose dependencies Deployment Scripts: - Enhance Build-ROA2WEB.ps1 with improved build process - Update ROA2WEB-Console.ps1 with Data Entry support - Improve Publish-And-Deploy.ps1 deployment workflow - Update deploy-config.json with new settings Gitignore: - Add more build cache patterns to ignore - Add temp frontend build directories 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
- ViewConfig: Display current configuration
|
||||
|
||||
.PARAMETER Component
|
||||
Component to build (All, Frontend, Backend, TelegramBot)
|
||||
Component to build (All, Frontend, Backend, TelegramBot, DataEntryApp, DataEntryBackend)
|
||||
|
||||
.PARAMETER TransferMethod
|
||||
Transfer method (Auto, WindowsShare, SSH)
|
||||
@@ -41,9 +41,13 @@
|
||||
.\Publish-And-Deploy.ps1 -NonInteractive -Action Build -Component Frontend -TransferMethod SSH
|
||||
Build frontend and publish via SSH
|
||||
|
||||
.EXAMPLE
|
||||
.\Publish-And-Deploy.ps1 -NonInteractive -Action Build -Component DataEntryApp
|
||||
Build Data Entry App (frontend + backend) and publish
|
||||
|
||||
.NOTES
|
||||
Author: ROA2WEB Team
|
||||
Version: 1.0 (Interactive Build & Publish)
|
||||
Version: 1.1 (Added Data Entry App support)
|
||||
Requires: PowerShell 5.1+, SSH key configured for remote access
|
||||
#>
|
||||
|
||||
@@ -54,7 +58,7 @@ param(
|
||||
[ValidateSet("Build", "TestConnections", "ViewConfig")]
|
||||
[string]$Action = "",
|
||||
|
||||
[ValidateSet("All", "Frontend", "Backend", "TelegramBot")]
|
||||
[ValidateSet("All", "Frontend", "Backend", "TelegramBot", "DataEntryApp", "DataEntryBackend")]
|
||||
[string]$Component = "",
|
||||
|
||||
[ValidateSet("Auto", "WindowsShare", "SSH")]
|
||||
@@ -295,7 +299,7 @@ function Test-AllConnections {
|
||||
function Invoke-Build {
|
||||
param(
|
||||
[Parameter(Mandatory)]
|
||||
[ValidateSet("All", "Frontend", "Backend", "TelegramBot")]
|
||||
[ValidateSet("All", "Frontend", "Backend", "TelegramBot", "DataEntryApp", "DataEntryBackend")]
|
||||
[string]$Component
|
||||
)
|
||||
|
||||
@@ -554,7 +558,8 @@ function Edit-Configuration {
|
||||
}
|
||||
"4" {
|
||||
Write-Host "`nEdit Build Settings:" -ForegroundColor Yellow
|
||||
Write-Host "Default Component (All/Frontend/Backend/TelegramBot) [current: $($script:Config.build.defaultComponent)]: " -NoNewline
|
||||
Write-Host "Default Component (All/Frontend/Backend/TelegramBot/DataEntryApp/DataEntryBackend)" -ForegroundColor Gray
|
||||
Write-Host "[current: $($script:Config.build.defaultComponent)]: " -NoNewline
|
||||
$newComp = Read-Host
|
||||
if ($newComp) { $script:Config.build.defaultComponent = $newComp }
|
||||
|
||||
@@ -658,17 +663,25 @@ function Show-ComponentMenu {
|
||||
Write-Host ("=" * 70) -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host " [1] All Components" -ForegroundColor White
|
||||
Write-Host " (Frontend + Backend + Telegram Bot)" -ForegroundColor Gray
|
||||
Write-Host " (Reports + Telegram Bot + Data Entry)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " [2] Frontend + Backend" -ForegroundColor White
|
||||
Write-Host " --- Reports App ---" -ForegroundColor Cyan
|
||||
Write-Host " [2] Reports Frontend + Backend" -ForegroundColor White
|
||||
Write-Host " (Vue.js build + FastAPI backend)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " [3] Backend Only" -ForegroundColor White
|
||||
Write-Host " [3] Reports Backend Only" -ForegroundColor White
|
||||
Write-Host " (FastAPI backend + shared modules)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " [4] Telegram Bot Only" -ForegroundColor White
|
||||
Write-Host " (Telegram bot standalone package)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " --- Data Entry App ---" -ForegroundColor Cyan
|
||||
Write-Host " [5] Data Entry Frontend + Backend" -ForegroundColor White
|
||||
Write-Host " (Vue.js build + FastAPI backend)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " [6] Data Entry Backend Only" -ForegroundColor White
|
||||
Write-Host " (FastAPI backend only)" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host " [B] Back to Main Menu" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host ("=" * 70) -ForegroundColor Cyan
|
||||
@@ -682,9 +695,11 @@ function Show-ComponentMenu {
|
||||
"2" { return "Frontend" }
|
||||
"3" { return "Backend" }
|
||||
"4" { return "TelegramBot" }
|
||||
"5" { return "DataEntryApp" }
|
||||
"6" { return "DataEntryBackend" }
|
||||
"B" { return "Back" }
|
||||
default {
|
||||
Write-Host "Invalid choice. Please select 1-4 or B." -ForegroundColor Red
|
||||
Write-Host "Invalid choice. Please select 1-6 or B." -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
} while ($true)
|
||||
|
||||
Reference in New Issue
Block a user