Files
webup-cloud/scripts/start.ps1
T

9 lines
635 B
PowerShell

$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
Set-Location -LiteralPath $projectRoot
if (!(Test-Path -LiteralPath '.env')) { throw 'Copy .env.example to .env and configure independent random passwords first.' }
if ((Get-Content -LiteralPath '.env' -Raw) -match 'CHANGE_ME') { throw 'Replace every CHANGE_ME placeholder in .env before starting.' }
docker compose --env-file .env up --build -d
if ($LASTEXITCODE -ne 0) { throw 'Docker Compose failed. Check Docker engine and logs.' }
Write-Host 'Console: http://localhost:8088 (or configured HTTP_PORT). Inspect startup: docker compose logs -f backend'