Mercurial > kallithea
comparison docs/setup.rst @ 7497:5e7eb3df806e
install-iis: use logging.config.fileConfig instead of paste.script copy
paste.script.util.logging_config is an old copy of logging.config from
Python 2.5.1 (see [1]). There are no paste-specific details in it.
In other places, we are always using logging.config directly, there is no
reason not to do it in install-iis.
[1] https://bitbucket.org/wilig/pastescript/commits/04d0db6b2f5ab360bdaa5b10511d969a24fde0ec
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Sat, 29 Dec 2018 22:30:08 +0100 |
parents | b66725ba01ed |
children | ee37a78c6950 |
comparison
equal
deleted
inserted
replaced
7496:aed1f09d0481 | 7497:5e7eb3df806e |
---|---|
542 | 542 |
543 import site | 543 import site |
544 site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages") | 544 site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages") |
545 | 545 |
546 ini = '/srv/kallithea/my.ini' | 546 ini = '/srv/kallithea/my.ini' |
547 from paste.script.util.logging_config import fileConfig | 547 from logging.config import fileConfig |
548 fileConfig(ini) | 548 fileConfig(ini) |
549 from paste.deploy import loadapp | 549 from paste.deploy import loadapp |
550 application = loadapp('config:' + ini) | 550 application = loadapp('config:' + ini) |
551 | 551 |
552 Or using proper virtualenv activation: | 552 Or using proper virtualenv activation: |
558 | 558 |
559 import os | 559 import os |
560 os.environ['HOME'] = '/srv/kallithea' | 560 os.environ['HOME'] = '/srv/kallithea' |
561 | 561 |
562 ini = '/srv/kallithea/kallithea.ini' | 562 ini = '/srv/kallithea/kallithea.ini' |
563 from paste.script.util.logging_config import fileConfig | 563 from logging.config import fileConfig |
564 fileConfig(ini) | 564 fileConfig(ini) |
565 from paste.deploy import loadapp | 565 from paste.deploy import loadapp |
566 application = loadapp('config:' + ini) | 566 application = loadapp('config:' + ini) |
567 | 567 |
568 | 568 |