Skip to content

Commit 3089001

Browse files
StormNinja17prastoin
authored andcommitted
centralized documentation. Attempting to make postgres superuser now
1 parent adc2957 commit 3089001

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

packages/twenty-website/src/content/developers/local-setup.mdx

+5-12
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ You should run all commands in the following steps from the root of the project.
117117
```bash
118118
make postgres-on-docker
119119
```
120-
Note: In some cases when using Docker, you may need to manually grant permissions to the `twenty` user.
121-
```bash
122-
psql postgres -c "GRANT ALL PRIVILEGES ON DATABASE \"default\" TO twenty;" -c "GRANT ALL PRIVILEGES ON DATABASE \"test\" TO twenty;"
123-
```
124120
</ArticleTab>
125121
<ArticleTab>
126122
<b>Option 1 (preferred):</b> To provision your database locally with `brew`:
@@ -135,10 +131,6 @@ You should run all commands in the following steps from the root of the project.
135131
```bash
136132
make postgres-on-docker
137133
```
138-
Note: In some cases when using Docker, you may need to manually grant permissions to the `twenty` user.
139-
```bash
140-
psql postgres -c "GRANT ALL PRIVILEGES ON DATABASE \"default\" TO twenty;" -c "GRANT ALL PRIVILEGES ON DATABASE \"test\" TO twenty;"
141-
```
142134
</ArticleTab>
143135
<ArticleTab>
144136
All the following steps are to be run in the WSL terminal (within your virtual machine)
@@ -156,15 +148,16 @@ You should run all commands in the following steps from the root of the project.
156148
```bash
157149
make postgres-on-docker
158150
```
159-
Note: In some cases when using Docker, you may need to manually grant permissions to the `twenty` user.
160-
```bash
161-
psql postgres -c "GRANT ALL PRIVILEGES ON DATABASE \"default\" TO twenty;" -c "GRANT ALL PRIVILEGES ON DATABASE \"test\" TO twenty;"
162-
```
163151
</ArticleTab>
164152
</ArticleTabs>
165153

166154
You can now access the database at [localhost:5432](localhost:5432), with user `postgres` and password `postgres` .
167155

156+
Note: In some cases when using Docker, you may need to manually grant superuser permission to the `postgres` user.
157+
```bash
158+
sudo -u postgres psql postgres -c "ALTER ROLE postgres WITH SUPERUSER"
159+
```
160+
168161
## Step 4: Set up a Redis Database (cache)
169162
Twenty requires a redis cache to provide the best performance
170163

0 commit comments

Comments
 (0)