Skip to content

Commit c2e4408

Browse files
committed
Add document for production environment
1 parent d96f0c6 commit c2e4408

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,34 @@ sudo systemctl status rdoc-static-all.service bc-setup-all.service bc-static-all
5656
- Run `sudo systemctl status rdoc-static-all.service bc-setup-all.service bc-static-all.service update-rurema-index.service` to see progress.
5757
- `Active: activating (start) since ...` means running.
5858
- `Active: inactive (dead) since ...` means finished.
59+
60+
## Production Environment
61+
62+
### ansible
63+
64+
```
65+
ansible-playbook -i docs-2020, provision/playbook.yml
66+
ansible-playbook -i docs-2020, provision/users.yml
67+
ansible-playbook -i docs-2020, provision/rurema-search.yml
68+
ansible-playbook -i docs-2020, provision/letsencrypt.yml
69+
```
70+
71+
### /etc/mackerel-agent/mackerel-agent.conf
72+
73+
Install `mackerel-check-plugins` too.
74+
75+
Add/Modified:
76+
77+
```
78+
[filesystems]
79+
ignore = "/dev/loop*"
80+
81+
[plugin.checks.fileage-bc-setup-all]
82+
command = ["check-file-age", "-i", "-w", "90000", "-c", "172800", "-f", "/run/docs.ruby-lang.org/bc-setup-all.updated"]
83+
[plugin.checks.fileage-bc-static-all]
84+
command = ["check-file-age", "-i", "-w", "90000", "-c", "172800", "-f", "/run/docs.ruby-lang.org/bc-static-all.updated"]
85+
[plugin.checks.fileage-rdoc-static-all]
86+
command = ["check-file-age", "-i", "-w", "90000", "-c", "172800", "-f", "/run/docs.ruby-lang.org/rdoc-static-all.updated"]
87+
[plugin.checks.fileage-update-rurema-index]
88+
command = ["check-file-age", "-i", "-w", "90000", "-c", "172800", "-f", "/run/docs.ruby-lang.org/update-rurema-index.updated"]
89+
```

0 commit comments

Comments
 (0)