Light
Dark
System
1.0latest

Deploying EdgeDB to a Bare Metal Server

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.

Copy
$ 
  
curl https://packages.edgedb.com/keys/edgedb.asc \
  | sudo apt-key add -

Add the EdgeDB package repository.

Copy
$ 
  
echo deb https://packages.edgedb.com/apt $(lsb_release -cs) main \
  | sudo tee /etc/apt/sources.list.d/edgedb.list

Install the EdgeDB package.

Copy
$ 
sudo apt-get update && sudo apt-get install edgedb-1

Add the EdgeDB package repository.

Copy
$ 
  
sudo curl -fL https://packages.edgedb.com/rpm/edgedb-rhel.repo \
  > /etc/yum.repos.d/edgedb.repo

Install the EdgeDB package.

Copy
$ 
sudo yum 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.

Copy
$ 
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.

Copy
$ 
sudo apt-get update && sudo apt-get install --only-upgrade edgedb-1
Copy
$ 
sudo systemctl restart edgedb-server-1
Copy
$ 
sudo yum update edgedb-1
Copy
$ 
sudo systemctl restart edgedb-server-1
Light
Dark
System