💾 Archived View for gemini.panda-roux.dev › log › entry › 2 captured on 2023-06-14 at 14:03:42. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Posted on Monday May 17, 2021
I'm using a set of Lua scripts for managing this Gemlog, and I wanted to write something about them here.
The scripts themselves can be found here
When building this Gemlog I wanted to create a workflow with very few actual steps required. I have a tendency to get distracted and forget things easily, so something that requires memorizing more than one or two steps is not going to work well for me. I'll end up becoming frustrated with it and abandoning it entirely.
So this time I'm trying to plan around that in advance!
My workflow looks like this:
Once I save and close the editor, the script I'm using will create a new record in a SQLite database based on the title I entered and the body of text I wrote, complete with a timestamp.
I have set up a systemd Path service to monitor the SQLite database storing the posts. When the database is modified it runs an rsync command to upload the database to the server hosting my capsule. The service units are printed below:
Path unit (monitors the database file for changes):
[Unit] Description=Path unit for the Gemloc syncronization service [Path] PathChanged=/home/panda-roux/gemlog/gemlog.db PathChanged=/home/panda-roux/gemlog/gemlog.lua [Install] WantedBy=paths.target
Service triggered by the above unit, which uploads the database:
[Unit] Description=Gemlog database synchronization service [Service] Type=oneshot ExecStart=bash /home/panda-roux/.scripts/sync-gemlog.sh
- panda-roux -
[2021-07-17 21:52:43] panda-roux (d8842):
Update: I am no-longer using a service to synchronize files; I'm now making posts directly SSH'd into the server itself with a set of scripts. https://git.sr.ht/~panda-roux/GeminiLuaScripts