Files
markbase/scripts/start_runner.sh
Warren e3d6b60825 feat: MarkBase initial version
Phase 1 (Infrastructure):
- Docs: README.md, AGENTS.md, CHANGELOG.md
- Tests: 26 tests (modes_test, filetree_api_test)
- Examples: examples/sample.md, sample.json
- CI/CD: .gitea/workflows/test.yml, release.yml
- Runner: configuration scripts and guides

Phase 2 (Quality):
- Code quality: rustfmt/clippy config
- Security: environment variables
- Test coverage: 62 tests (+36)
- Documentation: CONTRIBUTING.md, docs/api.yaml
- Showcase: demo_features.md, developer_quickstart.md

Test coverage: 75%
Test pass rate: 100%
2026-05-16 15:37:37 +08:00

32 lines
917 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# MarkBase Gitea Runner啟動腳本
RUNNER_BIN=~/.local/bin/gitea-runner
CONFIG_FILE=/Users/accusys/markbase/.runner
echo "啟動 Gitea Runner..."
echo "Runner版本v1.0.3"
echo "Runner名稱accusys-Mac-mini-M4-2.local"
echo "Gitea地址https://gitea.momentry.ddns.net"
#檢查Runner配置是否存在
if [ ! -f "$CONFIG_FILE" ]; then
echo "錯誤Runner配置檔案不存在"
echo "請先執行gitea-runner register --instance https://gitea.momentry.ddns.net --token <YOUR_TOKEN>"
exit 1
fi
#檢查Runner二進制檔案
if [ ! -f "$RUNNER_BIN" ]; then
echo "錯誤Runner未安裝"
echo "請先下載curl -L -o ~/.local/bin/gitea-runner https://gitea.com/gitea/runner/releases/download/v1.0.3/gitea-runner-1.0.3-darwin-arm64"
exit 1
fi
#啟動Runner daemon
echo "Runner正在啟動..."
cd /Users/accusys/markbase
$RUNNER_BIN daemon
echo "Runner已停止"