ci(updateserver): changes to actually add the new env stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user