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

Feat: import supervisor.conf environment variables from site config #1581

Open
casesolved-co-uk opened this issue Sep 6, 2024 · 0 comments

Comments

@casesolved-co-uk
Copy link

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, 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

Additional context
https://stackoverflow.com/questions/12900402/supervisor-and-environment-variables

def generate_supervisor_config(bench_path, user=None, yes=False, skip_redis=False):

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

No branches or pull requests

1 participant