Skip to content

Commit

Permalink
fix app_handler: bad var name (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
ali96343 authored Dec 14, 2023
1 parent 624426c commit 7313668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions py4web/gunicorn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion py4web/server_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def load_config(self):
break

def load(self):
return py4web_apps_handler
return app_handler

GunicornApplication().run()

Expand Down

0 comments on commit 7313668

Please sign in to comment.