You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There doesn't currently seem to be a way of importing environment variables into gunicorn and workers using the supervisor environment= feature. This would be useful for dependencies that look at os.environ, etc
Describe the solution you'd like
Modify bench setup supervisor to import this config from site_config.json, maybe a key called environment
Describe alternatives you've considered
There doesn't appear to be any other way of passing environment variables to gunicorn
I looked at dotenv but seems overkill to include another dependency
Issue: Feature Request
Is your feature request related to a problem? Please describe.
There doesn't currently seem to be a way of importing environment variables into gunicorn and workers using the supervisor
environment=
feature. This would be useful for dependencies that look at os.environ, etcDescribe the solution you'd like
Modify
bench setup supervisor
to import this config fromsite_config.json
, maybe a key calledenvironment
Describe alternatives you've considered
There doesn't appear to be any other way of passing environment variables to gunicorn
I looked at
dotenv
but seems overkill to include another dependencyAdditional context
https://stackoverflow.com/questions/12900402/supervisor-and-environment-variables
bench/bench/config/supervisor.py
Line 25 in bb2e324
The text was updated successfully, but these errors were encountered: