Created
October 14, 2010 11:19
-
-
Save maplpro/626044 to your computer and use it in GitHub Desktop.
cherrypy just serving static content
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
[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 = "." |
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
var script = document.createElement( 'script' ) | |
script.src = "http://localhost:8080/inspector.js" | |
document.body.appendChild( script ) | |
test() |
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
var test = function () { | |
return 10; | |
} |
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
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