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

View File

@@ -10,6 +10,27 @@ QZMusic 网页版,基于 Vue 3 + TypeScript + Vite 构建的音乐播放器。
- 🎚️ 音量控制
- 📊 音频可视化(基于 Web Audio API
- 🔍 搜索功能
- 🌐 默认端口10096
## 快速开始
### 一键部署(推荐)
```bash
# 使用一键部署脚本
npm run deploy
# 或者直接运行
./deploy.sh
```
### 一键启动
```bash
# 使用启动脚本
npm run start
# 或者直接运行
./start.sh
```
## 开发
@@ -25,12 +46,30 @@ npm install
npm run dev
```
服务器将在 http://localhost:10096 启动
### 构建生产版本
```bash
npm run build
```
### 预览生产构建
```bash
npm run preview
```
## 脚本说明
| 命令 | 说明 |
|------|------|
| `npm run dev` | 启动开发服务器(端口 10096 |
| `npm run build` | 构建生产版本 |
| `npm run preview` | 预览生产构建(端口 10096 |
| `npm run deploy` | 一键部署(安装依赖 + 构建) |
| `npm run start` | 一键启动(自动安装依赖 + 启动开发服务器) |
## 项目结构
```