Show More
@@ -485,10 +485,25 b' Add the following at the end of the .ini' | |||
|
485 | 485 | |
|
486 | 486 | then change <someprefix> into your choosen prefix |
|
487 | 487 | |
|
488 |
Apache's |
|
|
489 |
-------------------- |
|
|
488 | Apache's WSGI config | |
|
489 | -------------------- | |
|
490 | ||
|
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' | |
|
490 | 497 | |
|
491 | TODO ! | |
|
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 | 508 | Other configuration files |
|
494 | 509 | ------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now