Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kbshal/Anytranslate
Browse files Browse the repository at this point in the history
Merge branch master
:wq
:wq
:wq
:wq
�
  • Loading branch information
kbshal committed Mar 29, 2022
2 parents dbe6bfe + 27195f7 commit 81c4e3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ WORKDIR /Anytranslate
COPY --from=requirements-stage /tmp/requirements.txt /Anytranslate/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /Anytranslate/requirements.txt
COPY . /Anytranslate
CMD ["gunicorn", "trans_api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:80"]
CMD ["gunicorn", "trans_api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8080"]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ poetry install

And finally start the program by
```sh
web: gunicorn -w 3 -k uvicorn.workers.UvicornWorker trans_api:app
gunicorn trans_api:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8080
```

## Why use this?
Expand All @@ -28,7 +28,8 @@ web: gunicorn -w 3 -k uvicorn.workers.UvicornWorker trans_api:app




## LICENSE
- Check the license from [here](https://github.com/kbshal/Anytranslate/blob/master/LICENSE)



Expand Down

0 comments on commit 81c4e3a

Please sign in to comment.