Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated website docs and /twenty-server/.env #8801

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/twenty-server/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use this for local setup
PG_DATABASE_URL=postgres://postgres:twenty@localhost:5432/default
PG_DATABASE_URL=postgres://postgres:postgres@localhost:5432/default
REDIS_URL=redis://localhost:6379

FRONT_BASE_URL=http://localhost:3001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ You should run all commands in the following steps from the root of the project.
<b>Option 1 (preferred):</b> To provision your database locally:
Use the following link to install Postgresql on your Linux machine: [Postgresql Installation](https://www.postgresql.org/download/linux/)
```bash
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser;"
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;"
```
Comment on lines +112 to 113
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Database creation without user credentials - need to specify how users should authenticate to these databases

Note: You might need to add `sudo -u postgres` to the command before `psql` to avoid permission errors.

Expand All @@ -124,7 +124,7 @@ You should run all commands in the following steps from the root of the project.
```bash
brew install postgresql@16
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser;"
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;"
```

<b>Option 2:</b> If you have docker installed:
Expand All @@ -138,7 +138,7 @@ You should run all commands in the following steps from the root of the project.
<b>Option 1:</b> To provision your Postgresql locally:
Use the following link to install Postgresql on your Linux virtual machine: [Postgresql Installation](https://www.postgresql.org/download/linux/)
```bash
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser;"
psql postgres -c "CREATE DATABASE \"default\";" -c "CREATE DATABASE test;"
```
Note: You might need to add `sudo -u postgres` to the command before `psql` to avoid permission errors.

Expand Down