mod_wsgi icon indicating copy to clipboard operation
mod_wsgi copied to clipboard

EnvironmentFile for mod_wsgi?

Open guettli opened this issue 9 years ago • 0 comments

We run our code in virtualenvs.

For daemons and other parts we use EnvironmentFiles like systemd understands: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile=

Maybe I was blind, but I could not find a way to use these EnvironmentFiles in mod_wsgi.

This is not a big problem, everything works, but still I think there is something clumsy. May goal: Same environment in python executed by shell, by cron, by wsgi, by celery, ... Related StackO question: http://stackoverflow.com/questions/35223828/python-ensure-os-environ-is-equal-web-requests-shell-cron-celery/

We run several different virtualenvs under one apache VirtualHost.

I think it would be very nice if I could tell wsgi to use the same EnvironmentFile we already use for other things. In other words: This is a feature request for setting up the environment by EnvironmentFiles.

guettli avatar Feb 10 '16 09:02 guettli