Self-hosted Plausible analytics, in one command
说明与用途
使用一条命令部署 Plausible Community Edition,实现了自托管实时页面浏览量跟踪。
问题
The site railyard.run lacked analytics, making it hard to know if visitors were reading content.
结果
The one‑command deployment succeeded without manual environment configuration; analytics data appeared in real time, proving the self‑hosted, one‑click model works for a real site.
工作流
- Run
railyard launch plausible --serverto provision Plausible, Postgres, and ClickHouse as a single unit. - Open the Plausible URL and sign up as the instance owner via the first‑run flow.
- Add a website in Plausible, copy the generated tracking snippet, and insert it into the site’s code.
- Verify pageviews appear in Plausible’s Realtime view.
- If needed, remove duplicate stacks with
apps:rm --confirm.
证据
railyard launch plausible --server
The tracking script started showing pageviews in Plausible’s Realtime view within seconds of being added to the site.
- 记录日期: 2026-10-22T02:11:25.880Z