Fly.io
The fly driver runs the server as a single Fly.io Machine with a persistent volume, served over HTTPS at https://APP.fly.dev.
Requirements
Section titled “Requirements”flyctlinstalled and signed in withfly auth login.
Deploy
Section titled “Deploy”ushelf deploy fly --app my-ushelf --region cdgThe app name must be globally unique on Fly.io. Use --org to create the app in an organization other than your personal one.
On the first deploy, the CLI:
- Creates the app if it does not exist.
- Creates a 1 GB
ushelf_datavolume in the region. - Stores the API token and reader password as Fly secrets, sent over stdin.
- Deploys the release-matched image with a generated
fly.toml: one Machine with 1 GB of memory, the volume mounted at/data, forced HTTPS, and a health check on/api/health.
The Machine stops when idle and starts on the next request, so the first request after a pause takes a few seconds.
Operations
Section titled “Operations”ushelf statusushelf logs --followushelf stop # scales to zero Machines; the volume is keptushelf start # redeploys and starts a Machinerebuild-index and import are not available on Fly.io, because they need direct access to the stopped volume. The server reconciles its index from Markdown every time it starts.
Removing the app
Section titled “Removing the app”The CLI never deletes data. To delete the app and its volume, use flyctl directly:
fly apps destroy my-ushelfushelf context remove my-ushelf