##// END OF EJS Templates
Added example wsgi config into docs
marcink -
r1386:5a31d387 beta
parent child Browse files
Show More
@@ -485,10 +485,25 b' Add the following at the end of the .ini'
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
491
492 Example wsgi dispatch script::
490
493
491 TODO !
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 -------------------------
General Comments 0
You need to be logged in to leave comments. Login now