ci(updateserver): changes to actually add the new env stuff

This commit is contained in:
2026-05-13 20:51:54 -05:00
parent eb950d2c29
commit bcb7773007

View File

@@ -87,7 +87,15 @@ function Update-Server {
param ($Server, $Token, $Destination, $BuildFile)
function Fix-Env {
$envFile = ".env"
param(
[Parameter(Mandatory = $true)]
[string]$Path
)
$envFile = Join-Path $Path ".env"
Write-Host "Checking env file: $envFile"
if (-not (Test-Path $envFile)) {
Write-Host ".env not found, creating..."
@@ -197,7 +205,7 @@ function Update-Server {
Write-Host "Install/update completed."
# update the env to include the new and missing things silly people and wanting things fixed :(
Fix-Env #-Path $LocalPath
Fix-Env -Path $LocalPath
# do the migrations
# Push-Location $LocalPath