将 Pyramid 部署到 dotcloud
将 Pyramid 项目部署到 dotcloud 的正确方法是什么?
wsgi.py 的内容:
import os, sys
from paste.deploy import loadapp
current_dir = os.path.dirname(__file__)
application = loadapp('config:production.ini', relative_to=current_dir)
我当前收到以下错误。
uWSGI Error
wsgi application not found
What is the proper way to deploy a Pyramid project to dotcloud?
The contents of wsgi.py:
import os, sys
from paste.deploy import loadapp
current_dir = os.path.dirname(__file__)
application = loadapp('config:production.ini', relative_to=current_dir)
I'm currently getting the following error.
uWSGI Error
wsgi application not found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这可能表明
wsgi.py
无法成功导入。您可以检查以下内容:
dotcloud logs appname.servicename
的输出dotcloud ssh appname.servicename
登录到服务,然后转到当前
目录中,启动 python 并查看如果尝试执行 from wsgi import application 会发生什么如果这有帮助,这里是一个超级简单的 Pyramid 应用程序:
https://github.com/jpetazzo/pyramid-on-dotcloud
This could indicate that
wsgi.py
could not be imported successfully.You can check the following:
dotcloud logs appname.servicename
dotcloud ssh appname.servicename
, then go to thecurrent
directory, startpython
and see what happens if you try to dofrom wsgi import application
If that can help, here is a super-simple Pyramid app:
https://github.com/jpetazzo/pyramid-on-dotcloud
我能够使用以下方法传递 uWSGI Error 错误:
我仍然遇到静态文件的路径问题,所以我更改
为:
I was able to get pass the uWSGI Error error using :
I still had a path problem with the static files so I changed:
to
试试这个:
http://docs.dotcloud.com/tutorials/python/django/
try this:
http://docs.dotcloud.com/tutorials/python/django/