💾 Archived View for gemini.leafstorm.org › en › computer › capsule-code › index.gmi captured on 2023-07-22 at 16:17:38. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
The folder contains a README, which notes:
The current generation capsule runs on Agate, and this code builds it into a Docker container and deploys it to Fly. The "content" folder in your build context is the document root. You can read more about it in my Gemlog.
The Justfile provides some useful shortcuts: "just build" to build the container, "just run" to open a server in the foreground, and "just live" to run the server with a bind-mount so you can see changes without a rebuild. (It took some creativity to make a Justfile that works with both sh and PowerShell...)
To set up the capsule on Fly, change the app name in the fly.toml file and run "flyctl launch". To push the updated capsule to Fly, run "flyctl deploy" - easy enough that you don't need a "just" command.
TODO: Document how to generate TLS certs as environment variables.
📓 Open the gemlog to the entry in question
📧 Email Matthew about the code
(C) 2022 Matthew Frazier. All rights reserved.