运行 openshift 上的 cherrypy 示例

Run cherrypy example on openshift

所以,我在 openshift 上有一个 python 2.6 + cherrypy 应用程序。 Their example application uses the cherrypy WSGI server ,that I know nothing about, with the cherrypy framework, but I would like to run the standart cherrypy server instead, like shown in the example on the cherrypy website,这是行不通的(说 "Permission denied")。有什么想法吗?

我知道将标准的 cherrypy 应用程序转换为 WSGI 应用程序真的很容易,但仍然如此。

编辑:是的,我想同时使用:cherrypy 框架和 cherrypy 服务器

此外,您知道如何使用 import 在同一目录中导入 .py 文件吗?那也行不通,所以我想知道这是否是 openshift 特定的东西,python 2.6 不可能,或者只是我遗漏了一些东西。

谢谢。

阅读:

您可以提供一个 app.py 文件来覆盖默认 Apache/mod_wsgi 的使用。