feat: add sub2api source compatibility

This commit is contained in:
chick
2026-06-01 20:14:27 +08:00
parent 5f59b4bed3
commit 00962c3653
12 changed files with 527 additions and 25 deletions
+10 -3
View File
@@ -40,11 +40,18 @@ cp .env.example .env
docker-compose up -d
```
本地源码构建运行
本地源码一键运行(适合本机长期调试/兼容版)
```bash
cp .env.example .env
docker compose -f docker-compose.local.yml up -d --build
bash scripts/install-local-source.sh install
```
默认会克隆/更新当前仓库,启动 Go 后端 `8080` 与 Next.js 前端 `3000`,数据保存在 `data/`。常用命令:
```bash
bash scripts/install-local-source.sh status
bash scripts/install-local-source.sh restart
bash scripts/install-local-source.sh stop
```
运行后默认端口3000,可访问 `http://localhost:3000`