瀏覽代碼

Complements Apache2 documentation

Adrien Panay 6 年之前
父節點
當前提交
5aead76c85
共有 1 個文件被更改,包括 16 次插入1 次删除
  1. 16 1
      doc/apache.md

+ 16 - 1
doc/apache.md 查看文件

@@ -34,7 +34,22 @@ Create a file named `/etc/apache2/sites-available/tracim.conf` containing:
34 34
         </Directory>
35 35
     </VirtualHost>
36 36
 
37
-Replace `[tracim_path]` and `[your_user]` by your tracim installation path and your user.
37
+Replace `[tracim_path]` and `[your_user]` above by your tracim installation path and your user.
38
+
39
+Set the `APP_CONFIG` variable of the `tracim/app.wsgi` file to match your tracim installation path:
40
+
41
+    # -*- coding: utf-8 -*-
42
+
43
+    APP_CONFIG = "[tracim_path]/tracim/development.ini"
44
+
45
+    #Setup logging
46
+    # import logging
47
+    # logging.config.fileConfig(APP_CONFIG)
48
+
49
+    #Load the application
50
+    from paste.deploy import loadapp
51
+    application = loadapp('config:%s' % APP_CONFIG)
52
+    application.debug = False
38 53
 
39 54
 Load needed proxy modules and enable this site configuration file:
40 55