選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

26 行
679B

  1. $ErrorActionPreference = 'Stop'
  2. $projectRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
  3. $envFile = Join-Path $projectRoot '.env.local'
  4. if (-not (Test-Path $envFile)) {
  5. throw "Missing .env.local at $envFile"
  6. }
  7. Get-Content $envFile | ForEach-Object {
  8. $line = $_.Trim()
  9. if (-not $line -or $line.StartsWith('#')) { return }
  10. $parts = $line -split '=', 2
  11. if ($parts.Count -ne 2) { return }
  12. $name = $parts[0].Trim()
  13. $value = $parts[1]
  14. [System.Environment]::SetEnvironmentVariable($name, $value, 'Process')
  15. }
  16. Write-Host "Starting QC Text Builder on $env:HTTP_ADDR" -ForegroundColor Green
  17. Set-Location $projectRoot
  18. go run ./cmd/qctextbuilder