Updating a Gobble blog is now much faster due to the addition of the fsnotify library. The library watches a blog’s “posts” directory and, when anything changes, causes Gobble to refresh its post and comment cache. New posts, edits and deletions now occur instantly. The old 10 minute wait for the timer to expire has gone.
In related news, the content of Simian Zombie now gets synced to the server by Dropbox. The old workflow looked like this:
- Write a post;
- Commit to Git;
- Push to BitBucket;
- Connect to server;
- Pull from BitBucket;
- Restart Gobble to force a refresh.
The new workflow looks like this, thanks to fsnotify and Dropbox:
- Write a post.
Much nicer. I can even edit posts on my phone without having to use SSH and Vim.
I had a few false starts. The initial idea was to use BitTorrent Sync, not Dropbox, as I thought it would be easier to set up. Unfortunately, the documentation for CLI-only installs is half-baked and, after an hour or so of tinkering, I switched to Dropbox instead. Dropbox had its own share of issues, the most annoying of which was a segfault at startup in the current version. Switching to the latest beta fixed that.