Initial commit: ROA2WEB - FastAPI + Vue.js + Telegram Bot
Modern ERP Reports Application with microservices architecture Tech Stack: - Backend: FastAPI + python-oracledb (Oracle DB integration) - Frontend: Vue.js 3 + PrimeVue + Vite - Telegram Bot: python-telegram-bot + SQLite - Infrastructure: Shared database pool, JWT authentication, SSH tunnel Features: - FastAPI backend with async Oracle connection pool - Vue.js 3 responsive frontend with PrimeVue components - Telegram bot alternative interface - Microservices architecture with shared components - Complete deployment support (Linux Docker + Windows IIS) - Comprehensive testing (Playwright E2E + pytest) Repository Structure: - reports-app/ - Main application (backend, frontend, telegram-bot) - shared/ - Shared components (database pool, auth, utils) - deployment/ - Deployment scripts (Linux & Windows) - docs/ - Project documentation - security/ - Security scanning and git hooks
This commit is contained in:
38
deployment/windows/scripts/Restart-ROA2WEB.ps1
Normal file
38
deployment/windows/scripts/Restart-ROA2WEB.ps1
Normal file
@@ -0,0 +1,38 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Restart ROA2WEB Backend Service
|
||||
|
||||
.DESCRIPTION
|
||||
Stops and starts the ROA2WEB backend Windows service.
|
||||
|
||||
.EXAMPLE
|
||||
.\Restart-ROA2WEB.ps1
|
||||
#>
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$ServiceName = "ROA2WEB-Backend"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Write-Host "`n[*] Restarting ROA2WEB Backend Service..." -ForegroundColor Cyan
|
||||
|
||||
try {
|
||||
# Stop service
|
||||
Write-Host "`n[*] Stopping service..." -ForegroundColor Yellow
|
||||
& "$PSScriptRoot\Stop-ROA2WEB.ps1" -ServiceName $ServiceName
|
||||
|
||||
# Wait a moment
|
||||
Start-Sleep -Seconds 2
|
||||
|
||||
# Start service
|
||||
Write-Host "`n[*] Starting service..." -ForegroundColor Yellow
|
||||
& "$PSScriptRoot\Start-ROA2WEB.ps1" -ServiceName $ServiceName
|
||||
|
||||
Write-Host "`n[OK] Service restarted successfully" -ForegroundColor Green
|
||||
exit 0
|
||||
} catch {
|
||||
Write-Host "`n[ERROR] Failed to restart service: $_" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user