sh
This commit is contained in:
parent
9d5e3733a2
commit
91f56bd170
8
start.sh
8
start.sh
@ -14,14 +14,6 @@ cp ./word.json ./.output/
|
|||||||
# 4. 切换到 ./.output 目录
|
# 4. 切换到 ./.output 目录
|
||||||
cd ./.output
|
cd ./.output
|
||||||
|
|
||||||
port=3000
|
|
||||||
pid_list=$(lsof -t -i:$port)
|
|
||||||
|
|
||||||
# 杀死这些进程
|
|
||||||
for pid in $pid_list; do
|
|
||||||
echo "Killing process with PID $pid"
|
|
||||||
kill $pid
|
|
||||||
done
|
|
||||||
|
|
||||||
# 5. 执行 node ./server/index.mjs
|
# 5. 执行 node ./server/index.mjs
|
||||||
node ./server/index.mjs
|
node ./server/index.mjs
|
||||||
|
Loading…
Reference in New Issue
Block a user