Created
December 30, 2015 17:09
-
-
Save aeppert/d3c66988db6b734b021f to your computer and use it in GitHub Desktop.
Function to launch Dowser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def launch_memory_usage_server(host="127.0.0.1", port=8080): | |
| import cherrypy | |
| import dowser | |
| cherrypy.tree.mount(dowser.Root()) | |
| cherrypy.config.update({ | |
| 'environment': 'embedded', | |
| 'server.socket_host': host, | |
| 'server.socket_port': port | |
| }) | |
| cherrypy.engine.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment