mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-06-25 07:27:42 +00:00
scripts: modify 1 file
Verified changes: - modify scripts/dev-start.ps1 Diffstat: - 1 file changed, 11 insertions(+)
This commit is contained in:
parent
d5dc4c16fe
commit
74e9540cb2
1 changed files with 11 additions and 0 deletions
|
|
@ -72,6 +72,17 @@ for ($i = 0; $i -lt $maxWait; $i++) {
|
||||||
Start-Sleep -Seconds 1
|
Start-Sleep -Seconds 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host "Running database migrations..."
|
||||||
|
Push-Location (Join-Path $root 'backend')
|
||||||
|
try {
|
||||||
|
sqlx migrate run
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
throw "Failed to run database migrations (sqlx migrate run)."
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
# Start backend
|
# Start backend
|
||||||
Write-Host "Starting backend..."
|
Write-Host "Starting backend..."
|
||||||
$backend = Start-Process -FilePath 'cmd.exe' `
|
$backend = Start-Process -FilePath 'cmd.exe' `
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue