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:
@ -59,6 +59,10 @@ You need to set some environment variables before you can work on the project. L
|
|||||||
cd twenty
|
cd twenty
|
||||||
cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env
|
cp ./packages/twenty-front/.env.example ./packages/twenty-front/.env
|
||||||
cp ./packages/twenty-server/.env.example ./packages/twenty-server/.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.
|
The default values should work out of the box, except for the postgres URL, which requires a small modification.
|
||||||
|
|||||||
@ -4,6 +4,7 @@ PG_DATABASE_URL=postgres://twenty:twenty@localhost:5432/default
|
|||||||
# PG_DATABASE_URL=postgres://twenty:twenty@postgres:5432/default
|
# PG_DATABASE_URL=postgres://twenty:twenty@postgres:5432/default
|
||||||
|
|
||||||
FRONT_BASE_URL=http://localhost:3001
|
FRONT_BASE_URL=http://localhost:3001
|
||||||
|
|
||||||
ACCESS_TOKEN_SECRET=replace_me_with_a_random_string_access
|
ACCESS_TOKEN_SECRET=replace_me_with_a_random_string_access
|
||||||
LOGIN_TOKEN_SECRET=replace_me_with_a_random_string_login
|
LOGIN_TOKEN_SECRET=replace_me_with_a_random_string_login
|
||||||
REFRESH_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
REFRESH_TOKEN_SECRET=replace_me_with_a_random_string_refresh
|
||||||
|
|||||||
Reference in New Issue
Block a user