Skip to content

Cherrypy - Running natively in OS3 #147

Closed
@jfmatth

Description

@jfmatth

I have tried unsuccessfully to run CherrPy natively in OS3, as it's own server (i.e. no gunicorn or WSGI server).

Any help is appreciated

app.py

import cherrypy

class Root(object):
    @cherrypy.expose
    def index(self):
        return "Hello World!"
if __name__ == '__main__':
    from cherrypy._cpnative_server import CPHTTPServer
    cherrypy.server.httpserver = CPHTTPServer(cherrypy.server)
    cherrypy.server.socket_host = "0.0.0.0"
    cherrypy.quickstart(Root(), '/')

requirements.txt

cherrypy

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions