93jakg
Last Updated: February 25, 2016
·
14.73K
· pykler
88dcd9a1b56c02e905ac3a352e43ba81

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/leadsift/staging/builds/current
env = NEW_RELIC_CONFIG_FILE=newrelic.ini
env = NEW_RELIC_ENVIRONMENT=staging
env = DJANGO_SETTINGS_MODULE=leadsift_app.settings.staging
module = leadsift_app.wsgi:application
Say Thanks
Respond

1 Response
Add your response

16849
A6f7d1ab0b3ad04d4063fab4693e754d

thx. this snippet helps me a lot!

over 1 year ago ·