File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ CloudBeaver is a lightweight web application designed for comprehensive data man
185
185
6 . You should now see the ` PostgreSql@postgres-test ` connection in the list of available connections. Click on the connection to open the database.
186
186
7 . Navigate to ` PostgreSql@postgres-test > Databases > talawa > Schemas > public > Tables ` to view the available tables.
187
187
188
- ## Resetting Database
188
+ ## Resetting Database (Interactive)
189
189
190
190
** NOTE:** This applies only to Talawa API developers.
191
191
Original file line number Diff line number Diff line change @@ -393,22 +393,10 @@ This applies to users running Talawa API in dev containers.
393
393
394
394
1 . Once the server is running, open a new terminal session.
395
395
396
- 2 . Open a bash session inside the running container:
397
-
398
- ``` bash
399
- docker exec -it talawa-api-1 /bin/bash
400
- ```
401
-
402
- 3 . Inside the container, run the following command to import sample data into the database:
403
-
404
- ``` bash
405
- pnpm run add:sample_data
406
- ```
407
-
408
- 4 . Then exit
396
+ 2 . Run the following command to import sample data into the database:
409
397
410
398
``` bash
411
- exit
399
+ docker exec talawa-api-1 /bin/bash -c ' pnpm run add:sample_data && exit'
412
400
```
413
401
414
402
Refer to the next section for login information.
You can’t perform that action at this time.
0 commit comments