mirror of
https://github.com/lobehub/lobehub.git
synced 2026-09-20 04:56:13 +08:00
fcdaf9d814
* v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com>
34 lines
727 B
Bash
Executable File
34 lines
727 B
Bash
Executable File
#!/bin/bash
|
||
|
||
# ============================================
|
||
# 停止本地更新服务器
|
||
# ============================================
|
||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
PID_FILE="$SCRIPT_DIR/.server.pid"
|
||
LOG_FILE="$SCRIPT_DIR/.server.log"
|
||
|
||
if [ ! -f "$PID_FILE" ]; then
|
||
echo "ℹ️ 服务器未运行 (找不到 PID 文件)"
|
||
exit 0
|
||
fi
|
||
|
||
PID=$(cat "$PID_FILE")
|
||
|
||
if ps -p "$PID" > /dev/null 2>&1; then
|
||
echo "🛑 停止服务器 (PID: $PID)..."
|
||
kill "$PID"
|
||
sleep 1
|
||
|
||
# 强制终止(如果还在运行)
|
||
if ps -p "$PID" > /dev/null 2>&1; then
|
||
kill -9 "$PID" 2> /dev/null
|
||
fi
|
||
|
||
echo "✅ 服务器已停止"
|
||
else
|
||
echo "ℹ️ 服务器进程已不存在"
|
||
fi
|
||
|
||
rm -f "$PID_FILE"
|