-
v5.13.0 - Deployment Support
发布于
2026-01-27 13:48:56 +00:00 Deploy your services to any Linux server with systemd:
ssh user@server curl -fsSL https://go-micro.dev/install.sh | sh sudo micro init --server micro deploy user@server- micro init --server - Initialize a server to receive deployments
- micro deploy - Deploy services via SSH + systemd
- micro status --remote - Check service status on remote servers
- micro logs --remote - Stream logs from remote servers
- micro stop --remote - Stop services on remote servers
Named deploy targets in micro.mu:
deploy prod ssh deploy@prod.example.com deploy staging ssh deploy@staging.example.comThen:
micro deploy prod- systemd is the process supervisor (battle-tested)
- SSH is the transport (no custom agents)
- No platform needed (unlike Micro v3)
- Helpful error messages guide you through setup
See docs/deployment.md for the full guide.
下载附件