Fixes #47
The code that causes the URI TOO LONG error is in eventlet.wsgi.
So for the time being we're replacing that with paste.httpserver which serves
WSGI apps, too.
Longer term, we want to use eventlet but they need to make the maximum URL
length configurable.
from heat.common import config
from heat.common import wsgi
+from paste import httpserver
if __name__ == '__main__':
port = config.DEFAULT_PORT
print 'Starting Heat API on port %s' % port
- server = wsgi.Server()
- server.start(app, conf, default_port=port)
- server.wait()
+ httpserver.serve(app, port=port)
except RuntimeError, e:
sys.exit("ERROR: %s" % e)
from heat.common import config
from heat.common import wsgi
+from paste import httpserver
if __name__ == '__main__':
port = config.DEFAULT_PORT+1
print 'Starting Heat Engine on port %s' % port
- server = wsgi.Server()
- server.start(app, conf, default_port=port)
- server.wait()
+ httpserver.serve(app, port=port)
except RuntimeError, e:
sys.exit("ERROR: %s" % e)