Skip to content

Instantly share code, notes, and snippets.

Created April 30, 2012 14:34
Show Gist options
  • Save anonymous/2558832 to your computer and use it in GitHub Desktop.
Save anonymous/2558832 to your computer and use it in GitHub Desktop.
Change default port in cherrypy HeloWord
import cherrypy
cherrypy.config.update({'server.socket_port': 3030,})
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True
cherrypy.quickstart(HeloWorld())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment