Files
Fam Zheng 9328c01c1b
deploy write / build-and-deploy (push) Failing after 4s
write: 进 cube 仓库 + 接 gitea CI 自动部署
- 整 apps/write/ 进 git(含 frontend 源码 + Makefile + systemd unit + k8s service/ingress)
- .gitea/workflows/deploy-write.yml: act_runner fam 用户跑 host shell
    cargo build → npm build → install 到 ~/.local/bin/share/config →
    systemctl --user daemon-reload + restart → kubectl apply svc/ingress
- 前端 3 处"麻薯"字样去掉(思考中 / placeholder × 2)

注意 ~/.config/write/env 已有 passphrase,CI placeholder 逻辑会跳过不覆盖。
2026-05-24 17:16:44 +01:00

31 lines
955 B
Desktop File

[Unit]
Description=write.famzheng.me — voice/text → claude → markdown doc
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/home/fam/.local/bin/write
Restart=on-failure
RestartSec=5
# Env: required + optional
EnvironmentFile=/home/fam/.config/write/env
Environment=PORT=31391
Environment=WRITE_DOCS_DIR=/home/fam/.local/share/write/docs
Environment=WRITE_DB_PATH=/home/fam/.local/share/write/app.db
Environment=WRITE_DIST_DIR=/home/fam/.local/share/write/dist
Environment=WRITE_ASR_UPSTREAM=ws://cpc-i7:9000
Environment=WRITE_ASR_LANGUAGE=Chinese
Environment=WRITE_ASR_CHUNK_SIZE_SEC=1.0
Environment=WRITE_CLAUDE_BIN=/home/fam/.local/bin/claude
Environment=WRITE_CLAUDE_MODEL=sonnet
Environment=WRITE_CLAUDE_MAX_BUDGET_USD=2
Environment=RUST_LOG=info
StandardOutput=append:/home/fam/.local/state/write/write.log
StandardError=append:/home/fam/.local/state/write/write.log
[Install]
WantedBy=default.target