Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from wsgiref.simple_server import make_server, demo_app
- from ceilometer import service
- from ceilometer.api import app
- # Initialize the oslo configuration library and logging
- conf = service.prepare_service([])
- application = app.load_app(conf)
- httpd = make_server('172.16.10.94', 8777, application)
- # Respond to requests until process is killed
- httpd.serve_forever()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement