saep / repo-based-blog

Library for embedding a blog whose content is stored in a repository.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Pull repository from somewhere #4

Open saep opened 10 years ago

saep commented 10 years ago

Currently, the repository only uses a local directory in which blog content is stored. This way you can create a simple cron-job to check for updates. It would however be nice to let the blog program itself check for updates.

Things that could be implemented

saep commented 9 years ago

The currently recommended solution is a cronjob like this:

*/15 * * * * cd ~/blogentries && git fetch && git reset --hard origin/master > /dev/null
saep commented 9 years ago

A built-in variant should probably be done by adding that functonality to the filestore library.