Automating git pulls for content updates
Keep the wiki updated automatically from a Git remote.
Bare metal / VM (systemd timer)
- Use the
wiki-refresh.timerexample from the bare-metal guide. - Schedule hourly or every 5 minutes depending on how often you publish.
Cron alternative
*/10 * * * * cd /srv/wiki && git pull && JEKYLL_ENV=production bundle exec jekyll build
Docker git-sync
- Use the
git-syncsidecar in the Docker Compose example. It runsgit pullon an interval and the Jekyll container serves from the shared volume.
Webhooks
- For near-real-time updates, expose a small endpoint that runs
git pull && jekyll buildwhen GitHub/GitLab sends a push webhook.
GitHub Pages
- Commits to the repository trigger rebuilds automatically. Use branch protection to keep
mainstable.