Files
shensheshou/一键同步并启动.command

14 lines
360 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
cd "$(dirname "$0")"
echo "=== 从 GitHub 拉取最新代码 ==="
git fetch origin
git reset --hard origin/v0/fnvtk-5efaab9c
echo ""
echo "=== 安装依赖 ==="
pnpm install
echo ""
echo "=== 启动神射手(端口 3117==="
echo "访问: http://localhost:3117"
echo "端口冲突时运行: ./scripts/start.sh --kill"
./scripts/start.sh --kill