Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding load config from module or py-file #823

Merged
merged 15 commits into from
Nov 6, 2023
Merged

adding load config from module or py-file #823

merged 15 commits into from
Nov 6, 2023

Conversation

ali96343
Copy link
Contributor

@ali96343 ali96343 commented Nov 1, 2023

to load gunicorn config from a python file
or python module
It is necessary to write
export GUNICORN_use_native_config=myconf.py
export GUNICORN_use_native_config=python:mod_name

or write to gunicorn.saenv
export GUNICORN_use_native_config=myconf.py
export GUNICORN_use_native_config=python:mod_name
or
use_native_config=myconf.py
use_native_config=python:mod_name

@ali96343
Copy link
Contributor Author

ali96343 commented Nov 2, 2023

@ali96343
Copy link
Contributor Author

ali96343 commented Nov 3, 2023

added variable use_python_config == use_native_config
The first variable in the py4web/gunicorn.saenv will be used

@mdipierro
Copy link
Contributor

Thank you Ali. I am happy to merge this but can I ask you to include instructions in the the rst manual?

@ali96343
Copy link
Contributor Author

ali96343 commented Nov 5, 2023

The instructions are in the py4web/gunicorn.rst file

@mdipierro mdipierro merged commit ce3d9cf into web2py:master Nov 6, 2023
5 checks passed
@mdipierro
Copy link
Contributor

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants