Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Configuring CheeryPy on Windows Server - Amazon EC2
  2. import cherrypy
  3. import time
  4. from cherrypy import expose
  5.  
  6. class Converter:
  7.     @expose
  8.     def index(self):
  9.         return "Hello World from Test! on: " + time.ctime()
  10. cherrypy.config.update({'server.socket_host': '0.0.0.0',
  11.                         'server.socket_port': 8080,
  12.                        })
  13.  
  14. cherrypy.quickstart(Converter()