From 8de8258bad90d1f5024e675f8e5ed4e4b6e42950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Wed, 30 Nov 2022 18:41:06 +0100 Subject: [PATCH] Homogeneize docs on port 15432 --- CONTRIBUTING.md | 4 ++-- scripts/reset_local_db.sh | 2 +- scripts/reset_test_db.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c622af42..511088e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: diff --git a/scripts/reset_local_db.sh b/scripts/reset_local_db.sh index cf8e4f0f..422c2a8b 100755 --- a/scripts/reset_local_db.sh +++ b/scripts/reset_local_db.sh @@ -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 diff --git a/scripts/reset_test_db.sh b/scripts/reset_test_db.sh index a24edfe2..25466010 100755 --- a/scripts/reset_test_db.sh +++ b/scripts/reset_test_db.sh @@ -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