💾 Archived View for gemini.leafstorm.org › en › computer › capsule-code › index.gmi captured on 2023-05-24 at 17:44:49. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Capsule code

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

📄 Read the Dockerfile

📄 Read agate-launcher.sh

📄 Read fly.toml

📄 Read the Justfile

📧 Email Matthew about the code

🖥 Back to the desktop

🔙 Log out of the computer

(C) 2022 Matthew Frazier. All rights reserved.