Bläddra i källkod

Merge pull request #369 from tracim/fix/234/apache_documentation

Damien Accorsi 6 år sedan
förälder
incheckning
9f004dffa1
1 ändrade filer med 16 tillägg och 1 borttagningar
  1. 16 1
      doc/apache.md

+ 16 - 1
doc/apache.md Visa fil

@@ -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