From aa7fa3acfa8807a806577ce2555a70ddcd39710d Mon Sep 17 00:00:00 2001 From: AutoComput Date: Mon, 4 Mar 2024 08:17:40 -0800 Subject: [PATCH] Update .env.example (#4177) * Update .env.example this .env file will now work with the docker-compose example provided. * Update .env.example * Update doc and reset env example --------- Co-authored-by: Thomas Trompette --- packages/twenty-docs/docs/start/local-setup/docker-setup.mdx | 4 ++++ packages/twenty-server/.env.example | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/twenty-docs/docs/start/local-setup/docker-setup.mdx b/packages/twenty-docs/docs/start/local-setup/docker-setup.mdx index 41f5020ab..5a1bdd5d9 100644 --- a/packages/twenty-docs/docs/start/local-setup/docker-setup.mdx +++ b/packages/twenty-docs/docs/start/local-setup/docker-setup.mdx @@ -59,6 +59,10 @@ You need to set some environment variables before you can work on the project. L cd twenty cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env +echo "# ———————— Docker setup ———————— " >> ./packages/twenty-server/.env +echo "TAG=latest" >> ./packages/twenty-server/.env +echo "POSTGRES_ADMIN_PASSWORD=twenty" >> ./packages/twenty-server/.env +echo "LOCAL_SERVER_URL=http://localhost:3001" >> ./packages/twenty-server/.env ``` The default values should work out of the box, except for the postgres URL, which requires a small modification. diff --git a/packages/twenty-server/.env.example b/packages/twenty-server/.env.example index dc7e64593..b181c331c 100644 --- a/packages/twenty-server/.env.example +++ b/packages/twenty-server/.env.example @@ -4,6 +4,7 @@ PG_DATABASE_URL=postgres://twenty:twenty@localhost:5432/default # PG_DATABASE_URL=postgres://twenty:twenty@postgres:5432/default FRONT_BASE_URL=http://localhost:3001 + ACCESS_TOKEN_SECRET=replace_me_with_a_random_string_access LOGIN_TOKEN_SECRET=replace_me_with_a_random_string_login REFRESH_TOKEN_SECRET=replace_me_with_a_random_string_refresh