From e3d00999a9b8a1dce9ac0491a9fad16869b66ce6 Mon Sep 17 00:00:00 2001 From: Henrriky Date: Wed, 19 Jun 2024 10:12:36 -0300 Subject: [PATCH 1/2] chore: update postgresql setup in windows enviroment setup guide --- .../environment-setup/windows.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/contributing-guide/environment-setup/windows.md b/docs/contributing-guide/environment-setup/windows.md index 410cd3fa..9013a580 100644 --- a/docs/contributing-guide/environment-setup/windows.md +++ b/docs/contributing-guide/environment-setup/windows.md @@ -81,6 +81,21 @@ sudo apt-get install libpq-dev sudo service postgresql start ``` +Occasionally, when running the Chatwoot application in the Setup Guide tab, you may experience errors when trying to connect to the database + +Make sure this doesn't happen by creating a SUPERUSER in Postgresql and then defining it in Chatwoot's environment variables + +```bash +sudo -u postgres psql +``` + +Run the following command in terminal + +```sql +CREATE USER chatwoot WITH PASSWORD 'chatwoot'; +ALTER USER chatwoot WITH chatwoot; +``` + ### Install redis-server Chatwoot uses Redis server in agent assignments and reporting. To install `redis-server` From d6ab482749f3b047b7f2354cd93dc224072bc9df Mon Sep 17 00:00:00 2001 From: Henrriky Date: Wed, 19 Jun 2024 10:15:19 -0300 Subject: [PATCH 2/2] chore: update error in alter query --- docs/contributing-guide/environment-setup/windows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing-guide/environment-setup/windows.md b/docs/contributing-guide/environment-setup/windows.md index 9013a580..739bae5c 100644 --- a/docs/contributing-guide/environment-setup/windows.md +++ b/docs/contributing-guide/environment-setup/windows.md @@ -93,7 +93,7 @@ Run the following command in terminal ```sql CREATE USER chatwoot WITH PASSWORD 'chatwoot'; -ALTER USER chatwoot WITH chatwoot; +ALTER USER chatwoot WITH SUPERUSER; ``` ### Install redis-server