From c2d6abde657208125b46fe33d480ce88b649475c Mon Sep 17 00:00:00 2001 From: Peter Mulard <45550174+pmulard@users.noreply.github.com> Date: Tue, 25 Jul 2023 10:17:49 -0700 Subject: [PATCH] [Bug fix] Reference container name instead of localhost for postgres url in .env file (#808) * url should reference container name instead of localhost * add context for the postgres URL change, when installing with Docker. Also minor grammar/typo changes. * return the postgres URL to its original value, which corresponds with the recommended (yarn) installation. --------- Co-authored-by: Charles Bochet --- docs/docs/developer/local-setup.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/docs/developer/local-setup.mdx b/docs/docs/developer/local-setup.mdx index 0dd3db10b..4f4cf2ef6 100644 --- a/docs/docs/developer/local-setup.mdx +++ b/docs/docs/developer/local-setup.mdx @@ -115,11 +115,20 @@ git clone git@github.com:twentyhq/twenty.git ### 3. Setup env variables Twenty requires a few environment variables to be set. Locally, we recommend setting them through `.env` files. + ```bash cp ./front/.env.example ./front/.env cp ./server/.env.example ./server/.env ``` -The default values should work out of the box. + +The default values should work out of the box, except for the postgres URL, which requires a small modification. + +Open `./server/.env` and change to the following: + +```bash +PG_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/default?connection_limit=1 +``` + ### 4. Build