feat: complete production workflow migration
This commit is contained in:
1 parent
7f215e79c4
commit
8df5266abb
448 files changed
+56937
-14619
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#Requires -RunAsAdministrator
|
||||
param(
|
||||
[string]$ProjectRoot = "",
|
||||
[string]$DataRoot = "",
|
||||
[string]$NssmPath = "nssm.exe"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
if ([string]::IsNullOrWhiteSpace($ProjectRoot)) {
|
||||
$ProjectRoot = if ($env:GYXX_PROJECT_ROOT) {
|
||||
$env:GYXX_PROJECT_ROOT
|
||||
} else {
|
||||
(Resolve-Path (Join-Path $PSScriptRoot "..\..\..\..\..\..")).Path
|
||||
}
|
||||
}
|
||||
$installer = Join-Path $ProjectRoot "deploy\windows-service\install.ps1"
|
||||
if (-not (Test-Path -LiteralPath $installer -PathType Leaf)) {
|
||||
throw "Server scheduler installer is missing: $installer"
|
||||
}
|
||||
|
||||
& $installer -ProjectRoot $ProjectRoot -DataRoot $DataRoot -NssmPath $NssmPath
|
||||
exit $LASTEXITCODE
|
||||
Reference in new issue
Block a user