Skip to content
/docs/vps

Deployment

VPS

The installer, the service, and keeping it running.

On a Linux server, the installer does the whole job:

curl -fsSL https://levix.leviro.net/install.sh | bash

It checks Node, installs the package, creates a levix system user and /var/lib/levix, installs a systemd service, enables it and prints where to go next. The service is hardened the way a single-directory app allows — ProtectSystem=strict with one ReadWritePaths, ProtectHome, NoNewPrivileges, PrivateTmp — and Restart=always, because the bot deliberately exits on an unrecoverable error and expects a supervisor to bring it back.

Your own machine: pm2

For a desktop rather than a server, pm2 covers the same ground:

npm install -g pm2pm2 start levix --name levixpm2 save && pm2 startup