Open rzach opened 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.
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.
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?