Skip to content

Instantly share code, notes, and snippets.

@maplpro
Created October 14, 2010 11:19
Show Gist options
  • Save maplpro/626044 to your computer and use it in GitHub Desktop.
Save maplpro/626044 to your computer and use it in GitHub Desktop.
cherrypy just serving static content
[global]
server.socket_host: '0.0.0.0'
log.error_file: 'host.log'
[/]
tools.staticdir.root = os.getcwd()
tools.staticdir.on = True
tools.staticdir.dir = "."
var script = document.createElement( 'script' )
script.src = "http://localhost:8080/inspector.js"
document.body.appendChild( script )
test()
var test = function () {
return 10;
}
import cherrypy
class Root:
pass
app = cherrypy.quickstart( Root(), config = "config.txt" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment