feat(config): support multiple Gitea profiles via GITEA_PROFILE env var
未設時讀 config.env(行為不變);設了讀 config.<profile>.env。 .gitignore 新增 config.*.env 但保留 config.example.env。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# 複製此檔為 config.env 後填入實際值
|
||||
# cp config.example.env config.env
|
||||
#
|
||||
# 多組 Gitea 站/帳號:另存為 config.<profile>.env,
|
||||
# 執行腳本時帶 GITEA_PROFILE=<profile> 切換。例如:
|
||||
# cp config.example.env config.work.env # 編輯後
|
||||
# GITEA_PROFILE=work bash scripts/list.sh
|
||||
|
||||
# Gitea 站台網址(不要結尾 /)
|
||||
GITEA_URL=http://your-gitea.example.com:3000
|
||||
|
||||
Reference in New Issue
Block a user