Install and upgrade
Requirements
Section titled “Requirements”- A server running Ubuntu or Debian (amd64 or arm64) with a public IP.
- Root access (
sudo). - Optional but recommended: a domain name pointing at the server (an
Arecord), so the dashboard gets HTTPS. - Open ports: TCP 80 and 443 (web) and the UDP port for WireGuard that the installer prints. If your cloud provider has its own firewall (AWS security groups, Oracle security lists, Hetzner firewall…), open them there too.
Install
Section titled “Install”curl -fsSL https://get.asdl.online/asdl-hub | sudo bashOn Linux the installer first asks what to install: 1) ASDL Hub (the
server) or 2) Command line (just the asdl-hub command, to manage a Hub
from this machine; see Command line). Choose 1.
When there is no terminal to ask on, such as in a script or the Hub’s own
upgrade, it installs the Hub, as it always did. To skip the question, run
curl -fsSL https://get.asdl.online/asdl-hub | sudo ASDL_INSTALL=hub bash.
The installer then asks for a domain (you can leave it empty to use the server’s IP), and sets up everything: PostgreSQL, WireGuard, nginx, the firewall, a systemd service, HTTPS for the dashboard, and the Hub itself. At the end it prints the dashboard URL and the admin login.
Install a specific version
Section titled “Install a specific version”Put the version before the project name:
curl -fsSL https://get.asdl.online/v0.7.0/asdl-hub | sudo bashReleases are listed on GitHub.
Upgrade
Section titled “Upgrade”From the dashboard
Section titled “From the dashboard”When a new release is out, a banner at the top of every dashboard page says
so, with a link to what’s new. Admins can click Update now: the Hub
downloads that release’s installer from GitHub, checks it against the
release’s checksums and runs it. The dashboard is unavailable for about a
minute while the Hub restarts, then reloads on the new version by itself.
The installer’s output is in /var/log/asdl-hub-upgrade.log on the server.
Settings → Hub version shows the running version and has Check for updates, in case you don’t want to wait for the hourly check.
Settings → Hub version shows the running version and has Check for updates, in case you don’t want to wait for the hourly check.
From the command line
Section titled “From the command line”Run the same command again. The installer detects the existing install and upgrades it in place, keeping your database, secrets, WireGuard network and settings. Pin a version (above) to upgrade to exactly that release.
The Hub restarts during the upgrade, so the dashboard is unavailable for a few seconds. Apps keep running — they live on the nodes, and their routes are rebuilt when the Hub starts.
What gets installed where
Section titled “What gets installed where”| Path | What it is |
|---|---|
/opt/asdl-hub/ |
The Hub binary, dashboard and .env configuration |
/opt/asdl-hub/.env |
All settings and secrets — see Configuration |
/etc/nginx/asdl-hub.d/routes.conf |
Routes for your apps’ domains, written by the Hub |
/etc/letsencrypt/live/<domain>/ |
Certificates for your apps’ domains |
asdl-hub (systemd service) |
systemctl status asdl-hub, logs with journalctl -u asdl-hub |
Back up
Section titled “Back up”Back up these two things regularly:
- The database:
Terminal window sudo -u postgres pg_dump -Fc asdl_hub > asdl_hub.dump /opt/asdl-hub/.env— it containsSECRETS_KEY, which is needed to decrypt your projects’ secrets. A database backup without it cannot restore your apps’ environment variables.