Homogeneize docs on port 15432

This commit is contained in:
Adrià Casajús 2022-11-30 18:41:06 +01:00
parent 9d4bb68f71
commit 8de8258bad
No known key found for this signature in database
GPG Key ID: F0033226A5AFC9B9
3 changed files with 4 additions and 4 deletions

View File

@ -85,13 +85,13 @@ cp example.env .env
You need to edit your .env to reflect the postgres exposed port, edit the `DB_URI` to:
```
DB_URI=postgresql://myuser:mypassword@localhost:35432/simplelogin
DB_URI=postgresql://myuser:mypassword@localhost:15432/simplelogin
```
Run the postgres database:
```bash
docker run -e POSTGRES_PASSWORD=mypassword -e POSTGRES_USER=myuser -e POSTGRES_DB=simplelogin -p 35432:5432 postgres:13
docker run -e POSTGRES_PASSWORD=mypassword -e POSTGRES_USER=myuser -e POSTGRES_DB=simplelogin -p 15432:5432 postgres:13
```
To run the server:

View File

@ -1,6 +1,6 @@
#!/bin/sh
export DB_URI=postgresql://myuser:mypassword@localhost:35432/simplelogin
export DB_URI=postgresql://myuser:mypassword@localhost:15432/simplelogin
echo 'drop schema public cascade; create schema public;' | psql $DB_URI
poetry run alembic upgrade head

View File

@ -1,6 +1,6 @@
#!/bin/sh
export DB_URI=postgresql://myuser:mypassword@localhost:35432/test
export DB_URI=postgresql://myuser:mypassword@localhost:15432/test
echo 'drop schema public cascade; create schema public;' | psql $DB_URI
poetry run alembic upgrade head