Skip to content

Update README.md #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,16 @@ docker run -it \
```
See [here](https://docs.gunicorn.org/en/stable/design.html#async-workers) for more information about design considerations for these gunicorn settings.

#### Pitfalls & Gotchas to Remeber
#### Pitfalls & Gotchas to Remember
- If you run this on a cloud service and run an upgrade on everything out of date for security reasons, you may need to run `sudo service docker stop`
and then `sudo service docker start` to get docker going again. You'll also have to find the docker container that you had last running and restart it.
- If you run the docker container as described above, remember to try the URL of your service with the proper port at the end of the URL.

#### Using Local Python
With the requirements installed and the model files in place, you can now run the service with python locally.
In the command below, substitute `models/test` with the path to your models directory. For example, if you followed the example from [With Bucket Access](#with-bucket-access), it will be `models/10_23_2019`.

If running locally you may get a permissions error as in the above container example - in this case, for example of a unix ubuntu EC2 on AWS user and group would need to be set to ubuntu.
```
export MODELS_DIR=models/test; \
python service/app.py
Expand Down