mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Add a cherrpy example.
This commit is contained in:
parent
bc64baba65
commit
57d6f1b507
10
examples/cherryapp.py
Normal file
10
examples/cherryapp.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import cherrypy
|
||||||
|
|
||||||
|
cherrypy.config.update({'environment': 'embedded'})
|
||||||
|
|
||||||
|
class Root(object):
|
||||||
|
def index(self):
|
||||||
|
return 'Hello World!'
|
||||||
|
index.exposed = True
|
||||||
|
|
||||||
|
app = cherrypy.Application(Root(), script_name=None, config=None)
|
||||||
Loading…
x
Reference in New Issue
Block a user