comparison docs/setup.rst @ 8215:928bc1d8b279 default-i18n

Merge from default
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 06 Feb 2020 01:19:23 +0100
parents 460e7d2d1b38 01aca0a4f876
children 68d4aae74194
comparison
equal deleted inserted replaced
8214:460e7d2d1b38 8215:928bc1d8b279
555 555
556 # sometimes it's needed to set the current dir 556 # sometimes it's needed to set the current dir
557 os.chdir('/srv/kallithea/') 557 os.chdir('/srv/kallithea/')
558 558
559 import site 559 import site
560 site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages") 560 site.addsitedir("/srv/kallithea/venv/lib/python3.7/site-packages")
561 561
562 ini = '/srv/kallithea/my.ini' 562 ini = '/srv/kallithea/my.ini'
563 from logging.config import fileConfig 563 from logging.config import fileConfig
564 fileConfig(ini) 564 fileConfig(ini, {'__file__': ini, 'here': '/srv/kallithea'})
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 Or using proper virtualenv activation: 568 Or using proper virtualenv activation:
569 569
575 import os 575 import os
576 os.environ['HOME'] = '/srv/kallithea' 576 os.environ['HOME'] = '/srv/kallithea'
577 577
578 ini = '/srv/kallithea/kallithea.ini' 578 ini = '/srv/kallithea/kallithea.ini'
579 from logging.config import fileConfig 579 from logging.config import fileConfig
580 fileConfig(ini) 580 fileConfig(ini, {'__file__': ini, 'here': '/srv/kallithea'})
581 from paste.deploy import loadapp 581 from paste.deploy import loadapp
582 application = loadapp('config:' + ini) 582 application = loadapp('config:' + ini)
583 583
584 - Add the necessary ``WSGI*`` directives to the Apache Virtual Host configuration 584 - Add the necessary ``WSGI*`` directives to the Apache Virtual Host configuration
585 file, like in the example below. Notice that the WSGI dispatch script created 585 file, like in the example below. Notice that the WSGI dispatch script created
622 the ``init.d`` directory of the Kallithea source. 622 the ``init.d`` directory of the Kallithea source.
623 623
624 .. __: https://kallithea-scm.org/repos/kallithea/files/tip/init.d/ . 624 .. __: https://kallithea-scm.org/repos/kallithea/files/tip/init.d/ .
625 625
626 626
627 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
628 .. _python: http://www.python.org/ 627 .. _python: http://www.python.org/
629 .. _Python regular expression documentation: https://docs.python.org/2/library/re.html 628 .. _Python regular expression documentation: https://docs.python.org/2/library/re.html
630 .. _Mercurial: https://www.mercurial-scm.org/ 629 .. _Mercurial: https://www.mercurial-scm.org/
631 .. _Celery: http://celeryproject.org/ 630 .. _Celery: http://celeryproject.org/
632 .. _Celery documentation: http://docs.celeryproject.org/en/latest/getting-started/index.html 631 .. _Celery documentation: http://docs.celeryproject.org/en/latest/getting-started/index.html