0
I `apache ve mod_wsgi ile bir piramit web uygulaması dağıtmak için çalışıyorum, ama ben mesajı DistributionNotFound hatayı 500 olsun:dağıtın piramit web uygulaması (apache/mod_wsgi)
Herkes herhangi bir fikir vardır bulutlu?
- cloudyapp
- bulutlu
- statik
- şablonları
- cloudy.egg-info
- application.wsgi : Proje yapısı böyle bir şeydir 10
- production.ini
- bulutlu
My Files
Application.wsgi
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')
Production.ini
###
# 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
apache conf
komutunu çıktı olarak belirleyin. Başka birinin merak etmesi durumunda onu buraya gönderiyorum. Setup.py geliştirmeyi çalıştırmayı unuttum. – sopor
Aynı problemi yaşıyorum ve bir çözüm bulamıyorum. Uygulamamı AWS Elastic Beanstalk'e dağıtmaya çalışıyorum. "Python setup.py install" yerine "python setup.py development" çalıştırmanızın önemli olup olmadığını biliyor musunuz? –