Skip to content

Commit 07863db

Browse files
committed
added git branch to instructions
1 parent 8c270ef commit 07863db

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

SOLUTION.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ This API is built using Python and Flask. It can be run in Docker from this dire
77

88
To run the app:
99

10+
0. Checkout git branch `johns-api`.
1011
1. Run `sh run_app.sh` to build the Docker image and start the server. The app will be running locally on `http://0.0.0.0:5000`.
11-
2. Run `python test_api.py` to view a demo of the API on the test data given in the assignment.
12+
2. Then, run `python test_api.py` to view a demo of the API on the test data given in the assignment.
1213
3. To stop the container, press `CTRL+C`.
1314
To restart the container, run `docker start flask-app`. To attach to the container in a bash shell, run `docker exec -it flask-app /bin/sh`. From here, you can also run `python test_api.py` directly. To exit the interactive shell, press `CTRL+P CTRL+Q`.
14-
To force remove the container, run `docker rm -f flask-app`.
15+
4. To force remove the container, run `docker rm -f flask-app`.
16+
5. To run the app in debug mode, run `docker run --name flask-app -p 5000:5000 -v $(pwd):/app/ -it flask-app`.
1517

1618
## Why rank articles?
1719

run_app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
docker build -t flask-app .
3-
docker run --name flask-app -p 5000:5000 -v $(pwd):/app/ -it flask-app
3+
docker run --name flask-app -p 5000:5000 -v $(pwd):/app/ -itd flask-app

0 commit comments

Comments
 (0)