@@ -295,49 +295,50 @@ These steps are specific to Linux. You will need to modify them accordingly for
295
295
devcontainer build --workspace-folder .
296
296
```
297
297
298
- 10 . When the build is complete, the last line of the output should be:
298
+ 1 . When the build is complete, the last line of the output should be:
299
299
300
300
```
301
301
{"outcome":"success","imageName":"talawa-api"}
302
302
```
303
303
304
- 11 . Start the docker devcontainer
304
+ 1 . Start the docker devcontainer
305
305
306
306
```
307
307
devcontainer up --workspace-folder .
308
308
```
309
309
310
- 12 . When the startup is complete, the last line of out put should look like this:
310
+ 1 . When the container installation is complete, the last lines of output should look like this:
311
311
312
312
```
313
313
...
314
314
...
315
- ...
316
- [ 19:53:14.113] INFO (166): Server listening at http://127.0.0.1:4000
317
- [ 19:53:14.113] INFO (166): Server listening at http://172.23.0.3:4000
318
- [ 19:53:14.113] INFO (166): Server listening at http://172.20.0.2:4000
319
- [ 19:53:14.113] INFO (166): Server listening at http://172.19.0.3:4000
320
- [ 19:53:14.113] INFO (166): Server listening at http://172.21.0.3:4000
321
- [ 19:53:14.113] INFO (166): Server listening at http://172.22.0.4:4000
315
+ {"outcome":"success","containerId":"81306766f2aeeb851c8ebb844702d39ad2adc09419508b736ef2ee5a03eb8e34","composeProjectName":"talawa","remoteUser":"talawa","remoteWorkspaceFolder":"/home/talawa/api"}
322
316
```
323
317
324
318
All done!
325
319
326
- #### CLI Shutdown (Development)
320
+ #### CLI Startup (Development)
327
321
328
- Use the command `docker compose` command to cleanly shutdown the dev container
322
+ After a successful installation, use these commands to start the dev container.
329
323
330
- ```
331
- docker compose down
332
- ```
324
+ 1. To run in attached Mode
333
325
334
- #### CLI Startup (Development)
326
+ ```
327
+ docker exec talawa-api-1 /bin/bash -c 'pnpm run start_development_server'
328
+ ```
335
329
336
- After a successful installation, use these commands in sequence to start the dev container.
330
+ 2. To run in detached Mode
331
+
332
+ ```
333
+ docker exec talawa-api-1 /bin/bash -c 'nohup pnpm run start_development_server > /dev/null 2>&1 &'
334
+ ```
335
+
336
+ #### CLI Shutdown (Development)
337
+
338
+ Use the command `docker compose` command to cleanly shut down the dev container
337
339
338
340
```
339
- devcontainer build --workspace-folder .
340
- devcontainer up --workspace-folder .
341
+ docker compose down
341
342
```
342
343
343
344
#### Importing Sample Data
0 commit comments