Mercurial > kallithea
comparison docs/setup.rst @ 1386:5a31d387f347 beta
Added example wsgi config into docs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 17 Jun 2011 16:48:57 +0200 |
parents | 61a6a7bf2cbd |
children | 00b8fca6886c |
comparison
equal
deleted
inserted
replaced
1385:7e221629a3e5 | 1386:5a31d387f347 |
---|---|
483 prefix = /<someprefix> | 483 prefix = /<someprefix> |
484 | 484 |
485 | 485 |
486 then change <someprefix> into your choosen prefix | 486 then change <someprefix> into your choosen prefix |
487 | 487 |
488 Apache's example FCGI config | 488 Apache's WSGI config |
489 ---------------------------- | 489 -------------------- |
490 | 490 |
491 TODO ! | 491 |
492 Example wsgi dispatch script:: | |
493 | |
494 import os | |
495 os.environ["HGENCODING"] = "UTF-8" | |
496 os.environ['PYTHON_EGG_CACHE'] = '/home/web/rhodecode/.egg-cache' | |
497 | |
498 # sometimes it's needed to set the curent dir | |
499 os.chdir('/home/web/rhodecode/') | |
500 | |
501 from paste.deploy import loadapp | |
502 from paste.script.util.logging_config import fileConfig | |
503 | |
504 fileConfig('/home/web/rhodecode/production.ini') | |
505 application = loadapp('config:/home/web/rhodecode/production.ini') | |
506 | |
492 | 507 |
493 Other configuration files | 508 Other configuration files |
494 ------------------------- | 509 ------------------------- |
495 | 510 |
496 Some example init.d scripts can be found here, for debian and gentoo: | 511 Some example init.d scripts can be found here, for debian and gentoo: |