- Configuring CheeryPy on Windows Server - Amazon EC2
- import cherrypy
- import time
- from cherrypy import expose
- class Converter:
- @expose
- def index(self):
- return "Hello World from Test! on: " + time.ctime()
- cherrypy.config.update({'server.socket_host': '0.0.0.0',
- 'server.socket_port': 8080,
- })
- cherrypy.quickstart(Converter()