first runnable version

This commit is contained in:
yoyuzh
2026-03-14 12:28:46 +08:00
parent 8db2fa2aab
commit 6cff15f8dc
35 changed files with 2118 additions and 256 deletions

View File

@@ -1,7 +1,7 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$javaExe = 'C:\Program Files\Java\jdk-22\bin\java.exe'
$mavenExe = 'mvn.cmd'
$out = Join-Path $root 'backend-dev.out.log'
$err = Join-Path $root 'backend-dev.err.log'
@@ -13,9 +13,9 @@ if (Test-Path $err) {
}
$proc = Start-Process `
-FilePath $javaExe `
-ArgumentList '-jar', 'backend/target/yoyuzh-portal-backend-0.0.1-SNAPSHOT.jar', '--spring.profiles.active=dev' `
-WorkingDirectory $root `
-FilePath $mavenExe `
-ArgumentList 'spring-boot:run', '-Dspring-boot.run.profiles=dev' `
-WorkingDirectory (Join-Path $root 'backend') `
-PassThru `
-RedirectStandardOutput $out `
-RedirectStandardError $err