更新 .gitea/workflows/dev.yml
This commit is contained in:
parent
5a3ed5dd23
commit
4a2afa22d5
@ -18,8 +18,13 @@ jobs:
|
||||
- name: cp
|
||||
run: copy ./ruoyi-modules/Property/target/Property.jar C:\devtool\server
|
||||
- name: kill
|
||||
run: Get-NetTCPConnection -LocalPort 10001 -State Listening -ErrorAction SilentlyContinue | ForEach-Object -Process { Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue }
|
||||
- name: run
|
||||
run: |
|
||||
Get-NetTCPConnection -LocalPort 10001 -State Listen -ErrorAction SilentlyContinue |
|
||||
ForEach-Object -Process {
|
||||
Write-Host "发现占用端口10001的进程: PID $($_.OwningProcess)"
|
||||
Stop-Process -Id $_.OwningProcess -Force -ErrorAction SilentlyContinue
|
||||
Write-Host "已终止进程 $($_.OwningProcess)"
|
||||
}
|
||||
run: java -jar C:\devtool\server\Property.jar
|
||||
|
||||
# - copy ./ruoyi-modules/Property/target/Property.jar C:\devtool\server
|
||||
|
Loading…
Reference in New Issue
Block a user