add application object into ns only when using uwsgi and gunicorn
This commit is contained in:
parent
baabd30e74
commit
6e31111554
@ -225,4 +225,5 @@ def main():
|
|||||||
wsgi.SocketHTTPServer(sock, make_app(conf)).serve_forever()
|
wsgi.SocketHTTPServer(sock, make_app(conf)).serve_forever()
|
||||||
|
|
||||||
|
|
||||||
application = make_app(Config.load(os.environ.get('ISSO_SETTINGS')))
|
if sys.argv[0].endswith(("uwsgi", "gunicorn")):
|
||||||
|
application = make_app(Config.load(os.environ.get('ISSO_SETTINGS')))
|
||||||
|
Loading…
Reference in New Issue
Block a user