diff options
| -rw-r--r-- | Pipfile | 10 | ||||
| -rw-r--r-- | config/gunicorn.conf.py | 5 | 
2 files changed, 6 insertions, 9 deletions
| @@ -55,15 +55,7 @@ testb = """          -c 'pipenv run coverage run -m unittest'  """  report = "coverage report" -snekbox = """ -    gunicorn \ -        -w 2 \ -        -b 0.0.0.0:8060 \ -        --logger-class snekbox.GunicornLogger \ -        --access-logformat '%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss' \ -        --access-logfile - \ -        snekbox.api.app -""" +snekbox = "gunicorn -c config/gunicorn.conf.py snekbox.api.app"  devsh = "sh scripts/dev.sh"  build = """      docker build \ diff --git a/config/gunicorn.conf.py b/config/gunicorn.conf.py new file mode 100644 index 0000000..5ab11f4 --- /dev/null +++ b/config/gunicorn.conf.py @@ -0,0 +1,5 @@ +workers = 2 +bind = "0.0.0.0:8060" +logger_class = "snekbox.GunicornLogger" +access_logformat = "%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss" +access_logfile = "-" | 
