def __init__(self): """Initializes cherrypy config, loads plugins, and starts server""" howl.log('Loading server','HOWL') cherrypy.config.update(howl.config.server_config) howl.plugin_manager.load_all() cherrypy.tree.mount(RootController(), '/', config = howl.config.root_config) cherrypy.tree.mount(controllers.RestController(), '/player', config = howl.config.player_config)
def start(self): """Starts cherrypy server""" howl.log('Server STARTED','HOWL') cherrypy.engine.start() cherrypy.engine.block()