mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-21 21:17:43 +00:00
added UWSGI_PROFILE_OVERRIDE
This commit is contained in:
@@ -731,6 +731,11 @@ class uConf(object):
|
||||
|
||||
kvm_list = ['FreeBSD', 'OpenBSD', 'NetBSD', 'DragonFly']
|
||||
|
||||
if 'UWSGI_PROFILE_OVERRIDE' in os.environ:
|
||||
for item in os.environ['UWSGI_PROFILE_OVERRIDE'].split(';'):
|
||||
k,v = item.split('=', 2)
|
||||
uc.set(k, v)
|
||||
|
||||
if 'UWSGI_AS_LIB' in os.environ:
|
||||
self.set('as_shared_library', 'true')
|
||||
self.set('bin_name', os.environ['UWSGI_AS_LIB'])
|
||||
|
||||
Reference in New Issue
Block a user