feat: 配置10096端口并添加一键部署脚本

This commit is contained in:
QZMusic
2026-06-04 13:57:25 +00:00
parent abb1cd01e5
commit daa342c2ec
5 changed files with 134 additions and 2 deletions

27
start.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# QZMusic-Web 启动脚本
# 端口10096
echo "=========================================="
echo " 启动 QZMusic-Web"
echo "=========================================="
echo ""
# 检查是否已安装依赖
if [ ! -d "node_modules" ]; then
echo "📦 依赖未安装,正在安装..."
npm install
if [ $? -ne 0 ]; then
echo "❌ 依赖安装失败!"
exit 1
fi
fi
echo "🚀 正在启动开发服务器..."
echo "🌐 访问地址: http://localhost:10096"
echo ""
echo "按 Ctrl+C 停止服务器"
echo ""
npm run dev