Skip to content

Commit

Permalink
Use gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Oct 24, 2018
1 parent cb08596 commit 00b8bc3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ADD . /code

EXPOSE 9000

CMD ["python", "run.py"]
# gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent map:app
CMD ["gunicorn", "-b", "0.0.0.0:9000", "map:app"]
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ python-ldap = "*"
ldappool = "*"
six = "*"
requests = "*"
gunicorn = "*"

[dev-packages]

Expand Down
10 changes: 9 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions run.py

This file was deleted.

0 comments on commit 00b8bc3

Please sign in to comment.