13 lines
307 B
Batchfile
13 lines
307 B
Batchfile
@echo off
|
|
:: 使用简单的语法避免编码引起的解析错误
|
|
cd /d %~dp0
|
|
cd ..\backend
|
|
|
|
echo Checking port 3000...
|
|
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3000 ^| findstr LISTENING') do (
|
|
taskkill /F /PID %%a
|
|
)
|
|
|
|
echo Starting Backend Server...
|
|
:: start http://localhost:3000
|
|
npm start |