Skip to content

Commit

Permalink
Update deployment guides for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
raddevon committed Jan 16, 2024
1 parent 75dccf2 commit 7149333
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docs/guides/deployment/bare_metal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ default. You can start the server by enabling the unit.

.. code-block:: bash
$ sudo systemctl enable --now edgedb-server-3
$ sudo systemctl enable --now edgedb-server-4
This will start the server on port 5656, and the data directory will be
``/var/lib/edgedb/1/data``.
Expand All @@ -88,7 +88,7 @@ To set environment variables when running EdgeDB with ``systemctl``,

.. code-block:: bash
$ systemctl edit --full edgedb-server-3
$ systemctl edit --full edgedb-server-4
This opens a ``systemd`` unit file. Set the desired environment variables
under the ``[Service]`` section. View the supported environment variables at
Expand All @@ -104,7 +104,7 @@ Save the file and exit, then restart the service.

.. code-block:: bash
$ systemctl restart edgedb-server-3
$ systemctl restart edgedb-server-4
Set a password
Expand All @@ -114,14 +114,14 @@ socket directory. You can find this by looking at your system.d unit file.

.. code-block:: bash
$ sudo systemctl cat edgedb-server-3
$ sudo systemctl cat edgedb-server-4
Set a password by connecting from localhost.

.. code-block:: bash
$ echo -n "> " && read -s PASSWORD
$ RUNSTATE_DIR=$(systemctl show edgedb-server-3 -P ExecStart | \
$ RUNSTATE_DIR=$(systemctl show edgedb-server-4 -P ExecStart | \
grep -o -m 1 -- "--runstate-dir=[^ ]\+" | \
awk -F "=" '{print $2}')
$ sudo edgedb --port 5656 --tls-security insecure --admin \
Expand All @@ -147,7 +147,7 @@ You may need to restart the server after changing the listen port or addresses.

.. code-block:: bash
$ sudo systemctl restart edgedb-server-3
$ sudo systemctl restart edgedb-server-4
Link the instance with the CLI
Expand Down Expand Up @@ -183,7 +183,7 @@ Upgrading EdgeDB
intended to manage production instances.

When you want to upgrade to the newest point release upgrade the package and
restart the ``edgedb-server-3`` unit.
restart the ``edgedb-server-4`` unit.


Debian/Ubuntu LTS
Expand All @@ -192,7 +192,7 @@ Debian/Ubuntu LTS
.. code-block:: bash
$ sudo apt-get update && sudo apt-get install --only-upgrade edgedb-3
$ sudo systemctl restart edgedb-server-3
$ sudo systemctl restart edgedb-server-4
CentOS/RHEL 7/8
Expand All @@ -201,7 +201,7 @@ CentOS/RHEL 7/8
.. code-block:: bash
$ sudo yum update edgedb-3
$ sudo systemctl restart edgedb-server-3
$ sudo systemctl restart edgedb-server-4
Health Checks
=============
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/deployment/digitalocean.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Set the security policy to strict.

.. code-block:: bash
$ apt-get update && apt-get install --only-upgrade edgedb-server-3
$ apt-get update && apt-get install --only-upgrade edgedb-server-4
$ systemctl restart edgedb
That's it! Refer to the :ref:`Construct the DSN
Expand Down

0 comments on commit 7149333

Please sign in to comment.