Untitled

By Denim Guinea Pig, 11 Years ago, written in Plain Text, viewed 681 times.
URL http://pb.stoleyour.com/view/40b08420 Embed
Download Paste or View RawExpand paste to full width of browser
  1. >>> import cherrypy
  2. >>>
  3. >>> class HelloWorld(object):
  4. ...     def index(self):
  5. ...         return "Hello World!"
  6. ...     index.exposed = True
  7. ...
  8. >>> cherrypy.quickstart(HelloWorld())
  9. [12/Jul/2013:02:03:27] ENGINE Listening for SIGHUP.
  10. [12/Jul/2013:02:03:27] ENGINE Listening for SIGTERM.
  11. [12/Jul/2013:02:03:27] ENGINE Listening for SIGUSR1.
  12. [12/Jul/2013:02:03:27] ENGINE Bus STARTING
  13. CherryPy Checker:
  14. The Application mounted at '' has an empty config.
  15.  
  16. [12/Jul/2013:02:03:27] ENGINE Started monitor thread 'Autoreloader'.
  17. [12/Jul/2013:02:03:27] ENGINE Started monitor thread '_TimeoutMonitor'.
  18. [12/Jul/2013:02:03:27] ENGINE Serving on 127.0.0.1:8080
  19. [12/Jul/2013:02:03:27] ENGINE Bus STARTED
  20.  

Reply to "Untitled"

Here you can reply to the paste above