This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
param(
|
||||
[string]$AppAddr = "127.0.0.1:8080",
|
||||
[string]$SqlitePath = "",
|
||||
[string]$DownloadsDir = "",
|
||||
[string]$SearxUrl = "http://127.0.0.1:18080"
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
. (Join-Path $PSScriptRoot "dev-tools.ps1")
|
||||
|
||||
Use-LocalTooling
|
||||
$repoRoot = Get-RepoRoot
|
||||
if (-not $SqlitePath) {
|
||||
$SqlitePath = Join-Path $repoRoot "db\media.dev.db"
|
||||
}
|
||||
if (-not $DownloadsDir) {
|
||||
$DownloadsDir = Join-Path $repoRoot "downloads"
|
||||
}
|
||||
|
||||
$envMap = Get-AppEnvironment -WorkspaceRoot $repoRoot -DownloadsDir $DownloadsDir -SqlitePath $SqlitePath -AppAddr $AppAddr -SearxUrl $SearxUrl
|
||||
foreach ($entry in $envMap.GetEnumerator()) {
|
||||
Set-Item -Path ("Env:" + $entry.Key) -Value $entry.Value
|
||||
}
|
||||
|
||||
Write-Step "백엔드 실행"
|
||||
Invoke-CheckedCommand -FilePath "go" -Arguments @("run", "./backend")
|
||||
Reference in New Issue
Block a user