Skip to content

Commit e60c08d

Browse files
authored
fix: flask-mongo quickstart local mongo setup (#624)
Signed-off-by: Achanandhi-M <[email protected]>
1 parent 0d6730c commit e60c08d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

versioned_docs/version-3.0.0/quickstart/python-flask-mongo.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,14 @@ We'll be running our sample application right on Linux, but just to make things
214214
pip install -r requirements.txt
215215
```
216216

217-
## Start the MongoDB server
217+
## Start the MongoDB container
218218

219219
```bash
220-
sudo service mongod start
220+
docker run -p 27017:27017 -d --network backend --name mongo mongo
221221
```
222222

223+
> **Since we are using a MongoDB container, we need to update the `client` on line 11 in `app.py`, to `localhost`.**
224+
223225
## Lights, Camera, Record! 🎥
224226

225227
To initiate the recording of API calls, execute this command in your terminal:

0 commit comments

Comments
 (0)