stop using flask convenience function on app for run()
This doesn't work when we've wrapped the Flask app in some WSGI middleware Change-Id: I60f4a7d5a7371e48aab54ba6b8ff71a85b13eb1b
This commit is contained in:
parent
62b7f4512d
commit
470a7b2da2
@ -2,6 +2,7 @@
|
|||||||
from distil.api import web
|
from distil.api import web
|
||||||
import yaml
|
import yaml
|
||||||
import sys
|
import sys
|
||||||
|
from werkzeug.serving import run_simple
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
a = argparse.ArgumentParser("Web service for Distil")
|
a = argparse.ArgumentParser("Web service for Distil")
|
||||||
@ -23,4 +24,4 @@ except IOError as e:
|
|||||||
|
|
||||||
|
|
||||||
app = web.get_app(conf)
|
app = web.get_app(conf)
|
||||||
app.run(host=args.ip, port=int(args.port))
|
run_simple(args.ip, int(args.port), app)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user