在OpenShift上找不到WSGI应用程序 [英] WSGI Application not found on OpenShift

查看:205
本文介绍了在OpenShift上找不到WSGI应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从OpenShift的Django模板应用程序开始,将其推送到OpenShift,并且运行没有问题。对settings.py和/.openshift/action_hooks/deploy进行了一些细微的更改后,该应用程序将不再运行(404未找到)。在命令窗口中,在部署期间,我看到 CLIENT_ERROR:WSGI应用程序未找到。 build / deploy成功并完成部署。

I started from the Django template application in OpenShift, pushed it to OpenShift, and it ran without issue. After making a couple minor changes to settings.py and /.openshift/action_hooks/deploy, the application no longer runs (404 not found). In the command window, during deployment, I see CLIENT_ERROR: WSGI application not found. The build/deploy succeeds and finishes deployment.

如前所述,主页现在返回一个404。日志表明没有找到application.py。如果我SSH进入部署文件夹,我可以找到文件确切地报告丢失。任何想法?

As stated before, the home page now returns a 404. The logs indicate that application.py is not found. If I SSH into the deployment folder, I can find the file exactly where it is reported missing. Any ideas?

推荐答案

你做了什么变化?如果您更改了入门点,则需要按照本发行文章更新 OPENSHIFT_PYTHON_WSGI_APPLICATION 环境变量: https://www.openshift.com/blogs/openshift-online-march-2014-release-blog

What changes did you make? If you changed the entry point you need to update your OPENSHIFT_PYTHON_WSGI_APPLICATION environment variable as per this release article: https://www.openshift.com/blogs/openshift-online-march-2014-release-blog

这篇关于在OpenShift上找不到WSGI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆