Storing capsule pages?
Matthew Ernisse matt at going-flying.com
Fri Feb 12 23:11:44 GMT 2021
On Fri, Feb 12, 2021 at 11:46:28PM +0100, David Emerson said unto me:
>
> I'm interested to hear how you all are updating your capsules. I'm
> just building out my infrastructure, and I've decided to use Docker
> for my gemini server (agate) and for my proxy (kineto).
I've written a little bit about how my capsule is put together but
the basic overview is this. Molly Brown runs in a container that has
read-only bind mounts to the document root and the bare git repository.
The former is updated by a git post-receive hook running on the server
that hosts the filesystem, the latter is the actual repository so that
one can browse it via the git.gmi cgi.
gemini://going-flying.com/how-built.gmi
> Those who have regularly updated pages, though: how do you update
> them? I've been thinking I'll just use GitHub to store the capsule
> root, and reference that from the gemini server, but is there a
> smarter way?
Off the top of my head, you could have your container's entry point do
a git clone of your github repository into your in-container document
root and just restart the container every time you want an update.
--Matt
Archive home | About this archive