diff --git a/py4web/gunicorn.rst b/py4web/gunicorn.rst index 0d9160b64..8e178a339 100644 --- a/py4web/gunicorn.rst +++ b/py4web/gunicorn.rst @@ -96,7 +96,7 @@ Let's show examples (go to py4web root dir) .. code:: bash $ # via env - $export GUNCORN_use_python_config=myguni.conf.py + $export GUNICORN_use_python_config=myguni.conf.py $ $ # via gunicorn.saenv $echo use_python_config=myguni.conf.py >> gunicorn.saenv @@ -136,7 +136,7 @@ Let's show examples (go to py4web root dir) $ mkdir mod_name && cp myguni.conf.py mod_name/__init__.py $ $ # via env - $export GUNCORN_use_python_config=python:mod_name + $export GUNICORN_use_python_config=python:mod_name $ $ # via gunicorn.saenv $echo use_python_config=python:mod_name >> gunicorn.saenv diff --git a/py4web/server_adapters.py b/py4web/server_adapters.py index b6fa8b9b1..1b6cb4eb2 100644 --- a/py4web/server_adapters.py +++ b/py4web/server_adapters.py @@ -278,7 +278,7 @@ def load_config(self): break def load(self): - return py4web_apps_handler + return app_handler GunicornApplication().run()