Server Administration
Manage your Formlander server - CLI, backups, logs, and troubleshooting
Everything you need to run Formlander on your server.
Formlander Manager
Section titled “Formlander Manager”The formlander CLI handles installation, updates, and maintenance.
curl -fsSL https://formlander.com/install | sudo bashThe installer prompts for your domain, configures SSL, sets up Caddy, and starts Docker containers.
Commands
Section titled “Commands”| Command | Description |
|---|---|
formlander install | Install Formlander |
formlander update | Update to latest version (backs up DB first) |
formlander reload | Restart with current config |
formlander restore-db | Interactive backup restore |
formlander change-admin-password | Reset admin password |
formlander version | Show version |
Directory Structure
Section titled “Directory Structure”/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 # DatabaseConfiguration
Section titled “Configuration”Stored in /opt/formlander/.env:
FORMLANDER_DOMAIN=forms.example.comAPP_IMAGE=karloscodes/formlander:latestFORMLANDER_SESSION_SECRET=your-secrettail -f /opt/formlander/logs/formlander.log # App logstail -f /opt/formlander/logs/caddy.log # Web servertail -f /opt/formlander/logs/updater.log # Auto-updaterDatabase
Section titled “Database”sqlite3 /opt/formlander/storage/formlander-production.dbBackups
Section titled “Backups”Automatic Backups
Section titled “Automatic Backups”The manager creates a backup before every update (runs daily at 3 AM).
| Type | Retention |
|---|---|
| Daily | 7 days |
| Weekly | 14 days |
| Monthly | 90 days |
Location: /opt/formlander/storage/backups/
Restore anytime: formlander restore-db
Off-Server Backups
Section titled “Off-Server Backups”These backups live on the same server. If the server dies, backups die too.
Pick one off-server strategy:
| Strategy | Effort | Protection |
|---|---|---|
| VPS snapshots | Low | Your provider handles it. Enable weekly snapshots in your VPS dashboard. |
| rsync to another server | Medium | Cron 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):
0 2 * * * rsync -az /opt/formlander/storage/backups/ user@backup-server:/backups/formlander/Automatic Maintenance
Section titled “Automatic Maintenance”Runs nightly at 3:00 AM:
- Updates Formlander to latest version
- Creates database backup
- Rotates logs
Server Requirements
Section titled “Server Requirements”| Resource | Minimum |
|---|---|
| CPU | 1 vCPU |
| RAM | 512MB |
| Storage | 10GB SSD |
Network: Ports 80/443 open for Let’s Encrypt and HTTPS.
Troubleshooting
Section titled “Troubleshooting”| Problem | Fix |
|---|---|
| Container won’t start | docker logs formlander-app |
| SSL issues | Check DNS points to server, ports 80/443 open |
| Database locked | Ensure only one instance: docker ps | grep formlander |
Uninstall
Section titled “Uninstall”docker stop formlander-app formlander-caddydocker rm formlander-app formlander-caddyrm -rf /opt/formlanderrm /usr/local/bin/formlander