@@ -56,3 +56,34 @@ sudo systemctl status rdoc-static-all.service bc-setup-all.service bc-static-all
56
56
- Run ` sudo systemctl status rdoc-static-all.service bc-setup-all.service bc-static-all.service update-rurema-index.service ` to see progress.
57
57
- ` Active: activating (start) since ... ` means running.
58
58
- ` 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