In this guide we show how to deploy EdgeDB to bare metal using your system’s package manager and systemd.
The steps for installing the EdgeDB package will be slightly different depending on your Linux distribution. Once you have the package installed you can jump to Enable a systemd unit.
Import the EdgeDB packaging key.
$
curl https://packages.edgedb.com/keys/edgedb.asc \
| sudo apt-key add -
Add the EdgeDB package repository.
$
echo deb https://packages.edgedb.com/apt $(lsb_release -cs) main \
| sudo tee /etc/apt/sources.list.d/edgedb.list
Install the EdgeDB package.
$
sudo apt-get update && sudo apt-get install edgedb-1
The EdgeDB package comes bundled with a systemd unit that is disabled by default. You can start the server by enabling the unit.
$
sudo systemctl enable --now edgedb-server-1
This will start the server on port 5656, and the data directory will be
/var/lib/edgedb/1/data
. You can edit the unit to specify server arguments
via the environment. The variables are largely the same as those
documented for Docker.
When you want to upgrade to the newest point release upgrade the package and
restart the edgedb-server-1
unit.
$
sudo apt-get update && sudo apt-get install --only-upgrade edgedb-1
$
sudo systemctl restart edgedb-server-1