This commit is contained in:
reivilibre 2022-04-05 11:45:19 +00:00
parent 69e2718bad
commit e666a19231
4 changed files with 18 additions and 8 deletions

View file

@ -319,9 +319,10 @@ useful to reproduce this locally.</p>
following environment variables matching your configuration:</p> following environment variables matching your configuration:</p>
<ul> <ul>
<li><code>SYNAPSE_POSTGRES</code> to anything nonempty</li> <li><code>SYNAPSE_POSTGRES</code> to anything nonempty</li>
<li><code>SYNAPSE_POSTGRES_HOST</code></li> <li><code>SYNAPSE_POSTGRES_HOST</code> (optional if it's the default: UNIX socket)</li>
<li><code>SYNAPSE_POSTGRES_USER</code></li> <li><code>SYNAPSE_POSTGRES_PORT</code> (optional if it's the default: 5432)</li>
<li><code>SYNAPSE_POSTGRES_PASSWORD</code></li> <li><code>SYNAPSE_POSTGRES_USER</code> (optional if using a UNIX socket)</li>
<li><code>SYNAPSE_POSTGRES_PASSWORD</code> (optional if using a UNIX socket)</li>
</ul> </ul>
<p>For example:</p> <p>For example:</p>
<pre><code class="language-shell">export SYNAPSE_POSTGRES=1 <pre><code class="language-shell">export SYNAPSE_POSTGRES=1
@ -330,6 +331,10 @@ export SYNAPSE_POSTGRES_USER=postgres
export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword
trial trial
</code></pre> </code></pre>
<p>You don't need to specify the host, user, port or password if your Postgres
server is set to authenticate you over the UNIX socket (i.e. if the <code>psql</code> command
works without further arguments).</p>
<p>Your Postgres account needs to be able to create databases.</p>
<h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2> <h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2>
<p>The integration tests are a more comprehensive suite of tests. They <p>The integration tests are a more comprehensive suite of tests. They
run a full version of Synapse, including your changes, to check if run a full version of Synapse, including your changes, to check if

View file

@ -13318,9 +13318,10 @@ useful to reproduce this locally.</p>
following environment variables matching your configuration:</p> following environment variables matching your configuration:</p>
<ul> <ul>
<li><code>SYNAPSE_POSTGRES</code> to anything nonempty</li> <li><code>SYNAPSE_POSTGRES</code> to anything nonempty</li>
<li><code>SYNAPSE_POSTGRES_HOST</code></li> <li><code>SYNAPSE_POSTGRES_HOST</code> (optional if it's the default: UNIX socket)</li>
<li><code>SYNAPSE_POSTGRES_USER</code></li> <li><code>SYNAPSE_POSTGRES_PORT</code> (optional if it's the default: 5432)</li>
<li><code>SYNAPSE_POSTGRES_PASSWORD</code></li> <li><code>SYNAPSE_POSTGRES_USER</code> (optional if using a UNIX socket)</li>
<li><code>SYNAPSE_POSTGRES_PASSWORD</code> (optional if using a UNIX socket)</li>
</ul> </ul>
<p>For example:</p> <p>For example:</p>
<pre><code class="language-shell">export SYNAPSE_POSTGRES=1 <pre><code class="language-shell">export SYNAPSE_POSTGRES=1
@ -13329,6 +13330,10 @@ export SYNAPSE_POSTGRES_USER=postgres
export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword
trial trial
</code></pre> </code></pre>
<p>You don't need to specify the host, user, port or password if your Postgres
server is set to authenticate you over the UNIX socket (i.e. if the <code>psql</code> command
works without further arguments).</p>
<p>Your Postgres account needs to be able to create databases.</p>
<h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2> <h2 id="run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta"><a class="header" href="#run-the-integration-tests-a-hrefhttpsgithubcommatrix-orgsytestsytesta">Run the integration tests (<a href="https://github.com/matrix-org/sytest">Sytest</a>).</a></h2>
<p>The integration tests are a more comprehensive suite of tests. They <p>The integration tests are a more comprehensive suite of tests. They
run a full version of Synapse, including your changes, to check if run a full version of Synapse, including your changes, to check if

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long