File tree 1 file changed +5
-12
lines changed
packages/twenty-website/src/content/developers
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,6 @@ You should run all commands in the following steps from the root of the project.
117
117
```bash
118
118
make postgres-on-docker
119
119
```
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
- ```
124
120
</ArticleTab >
125
121
<ArticleTab >
126
122
<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.
135
131
```bash
136
132
make postgres-on-docker
137
133
```
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
- ```
142
134
</ArticleTab >
143
135
<ArticleTab >
144
136
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.
156
148
```bash
157
149
make postgres-on-docker
158
150
```
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
- ```
163
151
</ArticleTab >
164
152
</ArticleTabs >
165
153
166
154
You can now access the database at [ localhost:5432] ( localhost:5432 ) , with user ` postgres ` and password ` postgres ` .
167
155
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
+
168
161
## Step 4: Set up a Redis Database (cache)
169
162
Twenty requires a redis cache to provide the best performance
170
163
You can’t perform that action at this time.
0 commit comments