Ver código fonte

wsgi for python3

feature/python-3-migration
tr4ck3ur des JM2L 4 anos atrás
pai
commit
a8399d0646
1 arquivos alterados com 6 adições e 9 exclusões
  1. +6
    -9
      wsgi.py

+ 6
- 9
wsgi.py Ver arquivo

@@ -1,9 +1,6 @@
APP_CONFIG = "prod.ini"

#Setup logging
import logging.config
logging.config.fileConfig(APP_CONFIG)

#Load the application
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)
import sys
sys.path.append("/srv/.venv_jm2l/lib/python3.7/site-packages")
ini_path = "/srv/jm2l.linux-azur.org/jm2l/production.ini"
from pyramid.paster import get_app, setup_logging
setup_logging(ini_path)
application = get_app(ini_path, 'main')

Carregando…
Cancelar
Salvar