fly ssh console, and your home folder (Rakumux,
your agents, your code) lives on a volume, so it survives restarts and new deploys.
You need a Fly.io account and
flyctl, signed in with fly auth login.
Set it up
1
Write a Dockerfile and fly.toml
In a new folder, save this as The last line starts Rakumux’s background server whenever the machine starts, so sessions come
back after a restart without you logging in. Then save this as There’s no
Dockerfile:fly.toml, with an app name of
your own and the region nearest you:[http_service]: nothing is exposed, and Fly never stops the machine for being idle.2
Create the app, its volume and the machine
3
Install Rakumux
4
Install your agents and start working
Install and sign in to your agents as on any Linux machine; whatever goes in your home folder is
kept on the volume. Then run
rakumux in a project and start sessions as usual. Close the
console whenever you like: the sessions keep running.Come back
Runfly ssh console from any computer with flyctl, then rakumux: the same sessions, still
running. Everything in Your own server applies, including
checking on agents from your phone.
Good to know
- Cost. About $25 a month for 2 shared CPUs, 4 GB of memory and a 20 GB volume, running all the time. See Fly’s pricing.
- Only your home folder is kept. Programs installed with
aptgo away on the next deploy; add them to theDockerfileinstead. - The volume lives on one host. Fly keeps daily snapshots of it, but push your work as you go.
- Updates.
Uin Rakumux mode updates Rakumux in your home folder, like anywhere else.