Skip to content

Deploying the server

Once Audioland development server works on your machine, the next step is creating a dedicated running service for the server: this can be done creating a daemon in Debian or with a LXC container in Proxmox that streams your library whenever you want it.

The server repository ships everything for that under deploy/. There is no Docker: deployment is shell scripts plus a systemd unit - neither repository contains a container file.

Ready to deploy targets are Debian and Proxmox VE. Check the Requirements first - in production the server still wants ffmpeg, sqlite3 and Python for the toolkit.

The repository provides three, in rough order of convenience:

  • Debian install script - deploy/debian/audioland.sh. The audited source describes it as installing system dependencies (including rustup), configuring UFW, and optionally setting up Adminer, a small web tool for the database.
  • Proxmox VE LXC script - deploy/lxc/audioland.sh, the counterpart for creating the server as an LXC container on a Proxmox VE host.
  • Build and deploy manually - ./deploy/build-prod.sh followed by ./deploy/deploy.sh, the documented production build path for hosts where you want to run the steps yourself.

Whichever path you take, the server itself is configured exactly as in Run the server: a config.toml with real paths for your machine. On a production host that means editing the example Linux paths (/var/lib/audioland/..., /library/music) to where your library actually lives. The confirmed fields and environment overrides are listed in Server configuration.

Production runs use the unit at deploy/audioland.service. Two behaviors matter when you install or update:

  • Database migrations run at startup. The server applies the schema and migrations from database/migrations/ to data.db when it boots, so there is no separate migration step to remember before first login.
  • Logging is configured through environment. The binary reads AUDIOLAND_LOG_LEVEL, AUDIOLAND_LOG_JSON and AUDIOLAND_LOGS_PATH to decide verbosity, format and where logs go; the systemd unit itself also sets RUST_LOG.

Because the server binds to server_host:server_port from its config, a production host reachable from your desktop machines needs server_host set to the LAN address, and port 3000/tcp opened in the firewall - the Debian script’s UFW configuration covers exactly that.

The repository ships an updater that downloads the latest Linux binary from the server project’s GitLab releases page:

Terminal window
python3 deploy/update_audioland_prod.py

After it fetches the new binary, restart the service so the server actually runs it - a general systemd habit, not an Audioland-specific step.

A home server holding your library deserves a few deliberate choices before you trust it with daily listening.