docs: update Quick Start in README and README.zh-CN with clone steps and local scripts volume path

This commit is contained in:
2026-02-24 23:19:47 +08:00
parent 8a3ceb5bdb
commit 327526ac5e
2 changed files with 14 additions and 4 deletions

View File

@@ -20,10 +20,15 @@ Language:
- Gradle (or Gradle wrapper)
## Quick Start
Clone project:
```bash
git clone https://github.com/slhafzjw/slhaf-hub.git
cd slhaf-hub
```
### Server
#### 1) Run from terminal (Gradle)
```bash
cd /tmp/kotlin-scripts
./gradlew runWeb --args='--host=0.0.0.0 --port=8080 --scripts-dir=./scripts'
```
@@ -31,7 +36,7 @@ cd /tmp/kotlin-scripts
```bash
docker build -t slhaf-hub:latest .
docker run --rm -p 8080:8080 \
-v /tmp/kotlin-scripts/scripts:/app/scripts \
-v "$(pwd)/scripts:/app/scripts" \
-e HOST_API_TOKEN=your-token \
-e MAX_RUN_CONCURRENCY=8 \
slhaf-hub:latest

View File

@@ -20,10 +20,15 @@
- Gradle或 Gradle Wrapper
## 快速启动
克隆项目:
```bash
git clone https://github.com/slhafzjw/slhaf-hub.git
cd slhaf-hub
```
### 服务端
#### 1) 终端启动Gradle
```bash
cd /tmp/kotlin-scripts
./gradlew runWeb --args='--host=0.0.0.0 --port=8080 --scripts-dir=./scripts'
```
@@ -31,7 +36,7 @@ cd /tmp/kotlin-scripts
```bash
docker build -t slhaf-hub:latest .
docker run --rm -p 8080:8080 \
-v /tmp/kotlin-scripts/scripts:/app/scripts \
-v "$(pwd)/scripts:/app/scripts" \
-e HOST_API_TOKEN=your-token \
-e MAX_RUN_CONCURRENCY=8 \
slhaf-hub:latest