try: from cheroot.wsgi import Server as WSGIServer, PathInfoDispatcher except ImportError: from cherrypy.wsgiserver import CherryPyWSGIServer as WSGIServer, WSGIPathInfoDispatcher as PathInfoDispatcher from app import production d = PathInfoDispatcher({'/': production}) server = WSGIServer(('0.0.0.0', 2323), d) print('Ready...') try: print('Starting...') print() print('* http://localhost:2323') print('* https://nova-oss.com') server.start() except KeyboardInterrupt: server.stop()