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 <thomast@twenty.com>
This commit is contained in:
AutoComput
2024-03-04 08:17:40 -08:00
committed by GitHub
parent 8c0ec336ea
commit aa7fa3acfa
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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