I've added the following line to
Upon logging in via SSH, I can
echo $FOO_DEPLOYMENT_ENV and, of course, see
vbox output to the shell. If I open a Python shell and run
os.getenv('FOO_DEPLOYMENT_ENV'), it will return
'vbox', but the same code in my Python application, when run by uWSGI (as the
www-data user), it does not see the environment variable.
Clearly, this isn't a problem of uWSGI, and is rather a problem with my understanding of environment variables, or how they're properly set, and the contexts in which they can be retrieved. What am I doing or understanding incorrectly?