Guest User

Untitled

a guest
May 4th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import socket
  2. from cherrypy import wsgiserver
  3. from app import application
  4.  
  5. server = wsgiserver.CherryPyWSGIServer(
  6. bind_addr=('0.0.0.0', 9808),
  7. wsgi_app=application,
  8. request_queue_size=500,
  9. server_name=socket.gethostname()
  10. )
  11.  
  12. if __name__ == '__main__':
  13. try:
  14. server.start()
  15. except KeyboardInterrupt:
  16. pass
  17. finally:
  18. server.stop()
Add Comment
Please, Sign In to add comment