Manage an app
See your apps
Section titled “See your apps”andamio app listAPP URL ACCESS STATUSblog https://blog.yourdomain.com public Up 3 hours (healthy)panel https://panel.yourdomain.com vpn Up 2 days (healthy)See one app
Section titled “See one app”andamio app info myapp myapp ● running, started 2 h ago v 8e71e29 URL https://myapp.yourdomain.com (public) Repo your-user/myapp Port 3000 health /healthz RAM 256m using 74 MiB CPU 0.5 using 0.30% Data PostgreSQL Secrets ANTHROPIC_API_KEYWhat its app.yml says and how it’s doing on the server right now. Secrets: names only.
Change RAM, CPU, port or access
Section titled “Change RAM, CPU, port or access”andamio app set myapp --mem 512m # or several at once: --mem 512m --cpus 1andamio app set myapp --port 8080 --health /healthzandamio app set myapp --public # or --vpn: only from your VPNIt shows you the change (resources.mem: 256m → 512m), asks and applies it: a restart with the
same image, no deploy. If you change the port, your app has to listen on the new one; if you
changed the code for that, git push (that deploys).
With PostgreSQL, also its database limits, so it doesn’t hog the one it shares with the other apps:
andamio app set myapp --db-connections 20 --db-timeout 30s # 0 = no limitSee PostgreSQL and Redis.
Live logs
Section titled “Live logs”andamio app logs myappStop and start
Section titled “Stop and start”andamio app stop myapp # turns it off without deleting anything: data, database, secrets and domain stayandamio app start myapp # turns it back onA stopped app stays stopped even if you re-apply the server, and a git push doesn’t deploy
it until you start it. It frees its memory and CPU.
Roll back
Section titled “Roll back”andamio app rollback myapp # to the previous successful deployandamio app rollback myapp 1a2b3c4 # to that commit (one of its successful deploys)It’s the usual zero-downtime deploy: if that version doesn’t come up healthy, the current one
keeps running. The database doesn’t go back (for that, restore from a backup),
and the next push to main deploys the latest again. In the panel,
each deploy has Roll back here.
Restore from a backup
Section titled “Restore from a backup”andamio app restore myapp # the list of available backupsandamio app restore myapp 4f3e2d1c # its database and folders, as in that backup (or latest)Before touching anything it takes that app’s database out of the backup and tests it in a
temporary PostgreSQL (or MariaDB); if the backup doesn’t have it, it stops without changing
anything. From MariaDB only that app’s database comes in: not the users nor the other apps’
databases. If it works, it saves the current data in /srv/andamio/archive/,
stops the app for a few seconds, replaces its database and persistent folders and starts it
again. It doesn’t touch Redis, the deployed code or the secrets. It asks you to type the
app’s name to confirm.
Query its database (read-only)
Section titled “Query its database (read-only)”andamio app sql myapp # read-only psqlandamio app sql myapp "SELECT count(*) FROM users" # one queryIt runs as <app>_ro, a user that can only read (SELECT) that app’s database, in a read-only
transaction and with 5 seconds max per query: neither a mistake nor something malicious can
change data. It only gets in from inside the PostgreSQL container (no password, no network
access). In the panel, Database.
Undo a configuration change
Section titled “Undo a configuration change”andamio app revert myapp 1a2b3c4Undoes that commit if it was a configuration change to the app (the ones that touch only its
app.yml: RAM, domains, tasks, CORS, access): a new commit with the reverse change, then
apply. Never secrets, nor creating or deleting an app. If a later change touched the same lines,
it does nothing and tells you. In the panel, History → Undo.
Apply changes
Section titled “Apply changes”andamio app apply myappApplies on the server whatever is pending for that app (variables saved with --later,
manual changes to app.yml), with a single restart. It only runs that app’s tasks: it
takes seconds.
Persistent folders
Section titled “Persistent folders”A new container starts empty on every deploy: whatever your app stores on disk (uploads, a SQLite database) is lost. For what must last, a persistent folder:
andamio app volume add myapp /data # or when creating it: --volume /dataandamio app volume list myappandamio app volume rm myapp /data # stops mounting it; the files stay on the server- It lives on the server in
/srv/andamio/data/apps/myapp/, and is in the daily backup. - andamio gives it to the user your image runs as: your app can write even if it runs without root.
- The app’s web and worker see the same folder.
app destroyarchives it (in/srv/andamio/archive/) before deleting it.
Scheduled tasks
Section titled “Scheduled tasks”Something that runs by itself every so often: clean up old data, send a report, sync.
andamio app cron add myapp "0 3 * * *" "python cleanup.py" # every day at 3:00andamio app cron add myapp "*/15 * * * *" "node sync.js" --name sync # every 15 minutesandamio app cron list myapp # schedule, next run and how the last one wentandamio app cron run myapp sync # run it now and see its output (to try it)andamio app cron rm myapp sync- The schedule is cron’s:
minute hour day month weekday.*/15,1-5,0,30and the shortcuts@hourly,@daily,@weekly,@monthlyall work. - In your time, not the server’s (UTC): the first time, andamio takes your machine’s time
zone and asks you to confirm it (
andamio_timezonein your configuration). - It runs with the same as your app: its image, secrets, database, folders and RAM and CPU limits, in a separate container that’s removed when it ends. It gets no traffic.
- If it fails, you get a phone notice (with
andamio alerts), with the last lines of its output: once, and again when it works again. Past one hour, it’s stopped. - If the server was off at that time, it runs when it boots. If it’s still running when its next time comes, it doesn’t double up. A stopped app doesn’t run its tasks.
- Without
--name, the name comes from the command (python cleanup.py→cleanup).
Delete it
Section titled “Delete it”andamio app destroy myappIt asks you to type its name to confirm, and before deleting it backs up its database and archives its persistent folders. It removes its container, its configuration, its deploy key, its database, its Redis user and its folders.
The app’s repo and its images on GHCR stay on GitHub: delete them yourself if you no longer want them.
Resources
Section titled “Resources”By default each app gets 256 MB of RAM and half a CPU. To change it, in
apps/myapp/app.yml:
resources: mem: 512m cpus: 1 pids: 200And andamio app apply myapp.