Carnap / Carnap-Documentation

Documentation for Carnap
GNU General Public License v3.0
2 stars 3 forks source link

Documentation on separate servers #12

Open rzach opened 3 years ago

rzach commented 3 years ago

There should probably be a way to pull the documentation into the dataroot/srv directory of other servers; maybe document or check in the script that does that?

lf- commented 3 years ago

This can be done with a daily cron job to do something like (cd /var/lib/carnap/data/srv; git pull) or similar. On the UBC installation, we've not bothered setting it up as we usually use the either the main site or a local development copy with an appropriate symlink to a checkout of the docs repo (for working on docs) for docs.

lf- commented 3 years ago

Thinking some more about this, we could ship a systemd service and unit via our NixOS/NixOps configuration that would set this up automatically, using FileExists and other systemd conditions. Wouldn't be too tricky.