Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
da5ef0bb
Commit
da5ef0bb
authored
5 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into develop
parents
fdeac1e9
7ce1f97a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
INSTALL.md
+2
-2
2 additions, 2 deletions
INSTALL.md
changelog.d/5197.misc
+1
-0
1 addition, 0 deletions
changelog.d/5197.misc
docs/postgres.rst
+22
-23
22 additions, 23 deletions
docs/postgres.rst
with
25 additions
and
25 deletions
INSTALL.md
+
2
−
2
View file @
da5ef0bb
...
@@ -35,7 +35,7 @@ virtualenv -p python3 ~/synapse/env
...
@@ -35,7 +35,7 @@ virtualenv -p python3 ~/synapse/env
source ~/synapse/env/bin/activate
source ~/synapse/env/bin/activate
pip install --upgrade pip
pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade setuptools
pip install matrix-synapse
[all]
pip install matrix-synapse
```
```
This will download Synapse from
[
PyPI
](
https://pypi.org/project/matrix-synapse
)
This will download Synapse from
[
PyPI
](
https://pypi.org/project/matrix-synapse
)
...
@@ -48,7 +48,7 @@ update flag:
...
@@ -48,7 +48,7 @@ update flag:
```
```
source ~/synapse/env/bin/activate
source ~/synapse/env/bin/activate
pip install -U matrix-synapse
[all]
pip install -U matrix-synapse
```
```
Before you can start Synapse, you will need to generate a configuration
Before you can start Synapse, you will need to generate a configuration
...
...
This diff is collapsed.
Click to expand it.
changelog.d/5197.misc
0 → 100644
+
1
−
0
View file @
da5ef0bb
Stop telling people to install the optional dependencies by default.
This diff is collapsed.
Click to expand it.
docs/postgres.rst
+
22
−
23
View file @
da5ef0bb
...
@@ -3,6 +3,28 @@ Using Postgres
...
@@ -3,6 +3,28 @@ Using Postgres
Postgres version 9.4 or later is known to work.
Postgres version 9.4 or later is known to work.
Install postgres client libraries
=================================
Synapse will require the python postgres client library in order to connect to
a postgres database.
* If you are using the `matrix.org debian/ubuntu
packages <../INSTALL.md#matrixorg-packages>`_,
the necessary libraries will already be installed.
* For other pre-built packages, please consult the documentation from the
relevant package.
* If you installed synapse `in a virtualenv
<../INSTALL.md#installing-from-source>`_, you can install the library with::
~/synapse/env/bin/pip install matrix-synapse[postgres]
(substituting the path to your virtualenv for ``~/synapse/env``, if you used a
different path). You will require the postgres development files. These are in
the ``libpq-dev`` package on Debian-derived distributions.
Set up database
Set up database
===============
===============
...
@@ -26,29 +48,6 @@ encoding use, e.g.::
...
@@ -26,29 +48,6 @@ encoding use, e.g.::
This would create an appropriate database named ``synapse`` owned by the
This would create an appropriate database named ``synapse`` owned by the
``synapse_user`` user (which must already exist).
``synapse_user`` user (which must already exist).
Set up client in Debian/Ubuntu
===========================
Postgres support depends on the postgres python connector ``psycopg2``. In the
virtual env::
sudo apt-get install libpq-dev
pip install psycopg2
Set up client in RHEL/CentOs 7
==============================
Make sure you have the appropriate version of postgres-devel installed. For a
postgres 9.4, use the postgres 9.4 packages from
[here](https://wiki.postgresql.org/wiki/YUM_Installation).
As with Debian/Ubuntu, postgres support depends on the postgres python connector
``psycopg2``. In the virtual env::
sudo yum install postgresql-devel libpqxx-devel.x86_64
export PATH=/usr/pgsql-9.4/bin/:$PATH
pip install psycopg2
Tuning Postgres
Tuning Postgres
===============
===============
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment