Skip to content

Server Administration

Manage your Formlander server - CLI, backups, logs, and troubleshooting

Everything you need to run Formlander on your server.

The formlander CLI handles installation, updates, and maintenance.

Terminal window
curl -fsSL https://formlander.com/install | sudo bash

The installer prompts for your domain, configures SSL, sets up Caddy, and starts Docker containers.

CommandDescription
formlander installInstall Formlander
formlander updateUpdate to latest version (backs up DB first)
formlander reloadRestart with current config
formlander restore-dbInteractive backup restore
formlander change-admin-passwordReset admin password
formlander versionShow version
/opt/formlander/
├── .env # Configuration
├── Caddyfile # Web server config
├── logs/
│ ├── caddy.log
│ ├── formlander.log
│ └── updater.log
└── storage/
├── backups/ # Database backups
├── uploads/ # File uploads
└── formlander-production.db # Database

Stored in /opt/formlander/.env:

Terminal window
FORMLANDER_DOMAIN=forms.example.com
APP_IMAGE=karloscodes/formlander:latest
FORMLANDER_SESSION_SECRET=your-secret
Terminal window
tail -f /opt/formlander/logs/formlander.log # App logs
tail -f /opt/formlander/logs/caddy.log # Web server
tail -f /opt/formlander/logs/updater.log # Auto-updater
Terminal window
sqlite3 /opt/formlander/storage/formlander-production.db

The manager creates a backup before every update (runs daily at 3 AM).

TypeRetention
Daily7 days
Weekly14 days
Monthly90 days

Location: /opt/formlander/storage/backups/

Restore anytime: formlander restore-db

These backups live on the same server. If the server dies, backups die too.

Pick one off-server strategy:

StrategyEffortProtection
VPS snapshotsLowYour provider handles it. Enable weekly snapshots in your VPS dashboard.
rsync to another serverMediumCron job copies backups nightly.

VPS snapshots are the simplest. Most providers (Hetzner, DigitalOcean, Linode) offer them for a few dollars/month.

rsync example (daily at 2 AM):

Terminal window
0 2 * * * rsync -az /opt/formlander/storage/backups/ user@backup-server:/backups/formlander/

Runs nightly at 3:00 AM:

  • Updates Formlander to latest version
  • Creates database backup
  • Rotates logs
ResourceMinimum
CPU1 vCPU
RAM512MB
Storage10GB SSD

Network: Ports 80/443 open for Let’s Encrypt and HTTPS.

ProblemFix
Container won’t startdocker logs formlander-app
SSL issuesCheck DNS points to server, ports 80/443 open
Database lockedEnsure only one instance: docker ps | grep formlander
Terminal window
docker stop formlander-app formlander-caddy
docker rm formlander-app formlander-caddy
rm -rf /opt/formlander
rm /usr/local/bin/formlander