diff options
| author | Alexis M <alexis@notmyidea.org> | 2019-10-07 16:44:50 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2019-10-11 19:52:15 +0200 |
| commit | 9fe84bc1a2ef088e345e6215cf2e2fa3b53fc2da (patch) | |
| tree | 2961900daf437f475a85d9e085e04348bb3e4a86 /docs/installation.rst | |
| parent | 4dd9da8e7cfa7d384e1d3d0c40cb156493c4953e (diff) | |
| download | ihatemoney-mirror-9fe84bc1a2ef088e345e6215cf2e2fa3b53fc2da.zip ihatemoney-mirror-9fe84bc1a2ef088e345e6215cf2e2fa3b53fc2da.tar.gz ihatemoney-mirror-9fe84bc1a2ef088e345e6215cf2e2fa3b53fc2da.tar.bz2 | |
Enhance postgresql installation docs.
Diffstat (limited to 'docs/installation.rst')
| -rw-r--r-- | docs/installation.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/installation.rst b/docs/installation.rst index ab8fc57..5084a32 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -89,7 +89,14 @@ Configure database with PostgreSQL (optional) pip install psycopg2 -2. Configure :ref:`SQLALCHEMY_DATABASE_URI <configuration>` accordingly +2. Create the users and tables. On the command line, this looks like:: + + sudo -u postgres psql + postgres=# create database mydb; + postgres=# create user myuser with encrypted password 'mypass'; + postgres=# grant all privileges on database mydb to myuser; + +3. Configure :ref:`SQLALCHEMY_DATABASE_URI <configuration>` accordingly. Deploy it |
