From 57fd1fbc8b3f9e8f7734b5b60589d51d431d11da Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Thu, 19 Dec 2024 17:29:02 +0800 Subject: [PATCH 1/3] Fix instruct people output local configuration to a wrong directory --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f8547316f..1c947b1f4f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,7 +93,7 @@ This project uses asdf, and there is a .tool-versions file at the project root. 2. Generate config files ```sh - $ go run ./cmd/authgear init -o ./testing + $ go run ./cmd/authgear init -o ./var App ID (default 'my-app'): accounts HTTP origin of authgear (default 'http://localhost:3000'): http://localhost:3100 HTTP origin of portal (default 'http://portal.localhost:8000'): @@ -106,8 +106,8 @@ This project uses asdf, and there is a .tool-versions file at the project root. Elasticsearch URL (default 'http://localhost:9200'): Redis URL (default 'redis://localhost'): Redis URL for analytic (default 'redis://localhost/1'): - config written to testing/authgear.yaml - config written to testing/authgear.secrets.yaml + config written to var/authgear.yaml + config written to var/authgear.secrets.yaml ``` You need to make changes according to the example shown above. From 04e6be73dcaf72c093ff8ee2d783c22ef7126826 Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Thu, 19 Dec 2024 17:29:28 +0800 Subject: [PATCH 2/3] Match current step of generating configs --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1c947b1f4f..e429d5e3de 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -99,6 +99,7 @@ This project uses asdf, and there is a .tool-versions file at the project root. HTTP origin of portal (default 'http://portal.localhost:8000'): Phone OTP Mode (sms, whatsapp, whatsapp_sms) (default 'sms'): sms Would you like to turn off email verification? (In case you don't have SMTP credentials in your initial setup) [Y/N] (default 'false'): + Select a service for searching (elasticsearch, postgresql, none) (default 'elasticsearch'): Database URL (default 'postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable'): postgres://postgres:postgres@127.0.0.1:5432/app?sslmode=disable Database schema (default 'public'): Audit Database URL (default 'postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable'): postgres://postgres:postgres@127.0.0.1:5432/audit?sslmode=disable From 3f30611ccc644ad1b95cfd6dfaa07db8ed2440ab Mon Sep 17 00:00:00 2001 From: YinYin Chiu Date: Thu, 19 Dec 2024 17:33:04 +0800 Subject: [PATCH 3/3] Fix cannot run db migration properly --- CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e429d5e3de..01f42126ab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -166,7 +166,8 @@ This project uses asdf, and there is a .tool-versions file at the project root. 1. Start the database ```sh - docker compose up -d db + docker compose build db + docker compose up -d db pgbouncer ``` 2. Apply migrations