Multiple ENV vars with UWSGI
To send in multiple environment variables using the uwsgi ini, you just need to pass in multiple env parameters for example:
[uwsgi]
plugin = python27
enable-threads = true
single-interpreter = true
virtualenv = /path/to/current
env = NEW_RELIC_CONFIG_FILE=newrelic.ini
env = NEW_RELIC_ENVIRONMENT=staging
env = DJANGO_SETTINGS_MODULE=leadsift.settings.staging
module = leadsift.wsgi:application
Written by Hatem Nassrat
Related protips
2 Responses
thx. this snippet helps me a lot!
over 1 year ago
·
Thanks, that also did it for me :)!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Uwsgi
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#