Skip to content

Commit

Permalink
Update installation and upgrade docs for pgrouting use
Browse files Browse the repository at this point in the history
  • Loading branch information
justinefricou committed Nov 28, 2024
1 parent c653428 commit 529cff2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/install/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ If you are not confident with the ``install.sh`` script, or if you are having tr
1. Add ``deb https://packages.geotrek.fr/ubuntu bionic main`` to APT sources list.
2. Add https://packages.geotrek.fr/geotrek.gpg.key to apt keyring.
3. Run ``apt-get update``
4. If you want to use a local database, install PostGIS package (before installing Geotrek-admin, not at the same time).
If not, you must create database and enable PostGIS extension before.
4. If you want to use a local database, install the pgRouting package by running ``sudo apt install -y postgresql-pgrouting wget software-properties-common`` (before installing Geotrek-admin, not at the same time).
If not, you must create database and enable PostGIS and pgRouting extensions before.
5. Install the Geotrek-admin package (``sudo apt install geotrek-admin``).

.. note ::
Expand Down
16 changes: 15 additions & 1 deletion docs/install/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ Make sure to run the following command **BEFORE** upgrading:
``su postgres -c "psql -q -d $POSTGRES_DB -c 'CREATE EXTENSION pgcrypto;'"``


From Geotrek-admin <= 2.110.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**WARNING!**

Starting from version 2.111.0, Geotrek now requires pgRouting. Before upgrading:

1. Install the pgRouting package by running ``sudo apt install -y postgresql-pgrouting wget software-properties-common``

2. Run the following command: ``su postgres -c "psql -q -d $POSTGRES_DB -c 'CREATE EXTENSION pgrouting;'"``



Server migration
~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -180,7 +193,7 @@ Now, install newest version of PostgreSQL and PostGIS:

::

sudo apt install postgresql-14-postgis-3
sudo apt install postgresql-14-pgrouting



Expand All @@ -206,6 +219,7 @@ Recreate user and database:
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_raster;
CREATE EXTENSION pgcrypto;
CREATE EXTENSION pgrouting;
\q

.. warning::
Expand Down

0 comments on commit 529cff2

Please sign in to comment.