我正在尝试使用apache和mod_wsgi部署金字塔Web应用程序,但是我收到错误500,消息 DistributionNotFound:多云
任何人都有任何想法?项目结构是这样的:
我的档案
Application.wsgi
$('.togglebutton').click(function() {
$("#"+ $(this).data('id')).toggle();
});
Production.ini
from pyramid.paster import get_app, setup_logging
import os, sys
sys.path.append('/var/www/cloudyapp/')
os.environ['PYTHON_EGG_CACHE'] = '/var/www/cloudyapp/'
ini_path = '/var/www/cloudyapp/production.ini'
setup_logging(ini_path)
application = get_app(ini_path, 'main')
apache conf
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/environment.html
###
[app:main]
use = egg:cloudy
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/logging.html
###
[loggers]
keys = root, cloudy
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
[logger_cloudy]
level = WARN
handlers =
qualname = cloudy
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
答案 0 :(得分:0)
也许您没有安装金字塔应用,因为您添加了sys.path
的应用路径。
通过setup.py
安装您的应用并输出命令tail -n 30 /var/log/apache/error.log