docs: gitea sync section - correct repo to m4mini warren/momentry_core (110.200 host defunct)
This commit is contained in:
@@ -936,14 +936,19 @@ shellcheck scripts/*.sh monitor/**/*.sh
|
|||||||
|
|
||||||
## Gitea Sync
|
## Gitea Sync
|
||||||
|
|
||||||
主要 sync 管道為 Gitea:`http://192.168.110.200:3000/admin/momentry_core.git`
|
主要 sync 管道為 Gitea:`http://192.168.110.210:3000/warren/momentry_core.git`(m4mini)
|
||||||
|
|
||||||
|
> **2026-11-05 更正**:舊文檔記載的 `http://192.168.110.200:3000/admin/momentry_core.git`
|
||||||
|
> 已失效(主機無回應)。本機實際 remote 為 m4mini 的 `warren/momentry_core`,分支
|
||||||
|
> `feature/dynamic-concurrency-*` 為進行中工作分支。可用測試:
|
||||||
|
> `curl -s -u "warren:<TOKEN>" http://192.168.110.210:3000/api/v1/repos/warren/momentry_core`
|
||||||
|
|
||||||
### 產生 Access Token(首次設定)
|
### 產生 Access Token(首次設定)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# admin 帳號密碼為 AccusysTest!
|
# 登入 warren 帳號後於 API 產生 token(scopes: write:repository)
|
||||||
TOKEN=$(curl -s -X POST "http://192.168.110.200:3000/api/v1/users/admin/tokens" \
|
TOKEN=$(curl -s -X POST "http://192.168.110.210:3000/api/v1/users/warren/tokens" \
|
||||||
-u "admin:AccusysTest!" \
|
-u "warren:<PASSWORD>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"name":"m5max128_push","scopes":["write:repository"]}' | jq -r '.sha1')
|
-d '{"name":"m5max128_push","scopes":["write:repository"]}' | jq -r '.sha1')
|
||||||
echo $TOKEN
|
echo $TOKEN
|
||||||
@@ -953,11 +958,11 @@ echo $TOKEN
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 用 token 取代密碼
|
# 用 token 取代密碼
|
||||||
git remote add origin http://admin:TOKEN@192.168.110.200:3000/admin/momentry_core.git
|
git remote add origin http://warren:TOKEN@192.168.110.210:3000/warren/momentry_core.git
|
||||||
|
|
||||||
# 同步
|
# 同步
|
||||||
git pull origin main
|
git pull origin feature/dynamic-concurrency-v1.3.4
|
||||||
git push origin main
|
git push origin feature/dynamic-concurrency-v1.3.4
|
||||||
```
|
```
|
||||||
|
|
||||||
### Token 記錄
|
### Token 記錄
|
||||||
|
|||||||
Reference in New Issue
Block a user