Pārlūkot izejas kodu

fix webdav conf file : setup it in wsgi launcher

Guénaël Muller 6 gadus atpakaļ
vecāks
revīzija
79df94f1eb
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 2 1
      README.md
  2. 2 0
      wsgi/webdav.py

+ 2 - 1
README.md Parādīt failu

@@ -87,6 +87,7 @@ Run all services with uwsgi
87 87
     sudo pip3 install uwsgi
88 88
     # set tracim_conf_file path
89 89
     export TRACIM_CONF_PATH="$(pwd)/development.ini"
90
+    export TRACIM_WEBDAV_CONF_PATH="$(pwd)/wsgidav.conf"
90 91
     # pyramid webserver
91 92
     uwsgi -d /tmp/tracim_web.log --http-socket :6543 --wsgi-file wsgi/web.py -H env --pidfile /tmp/tracim_web.pid
92 93
     # webdav wsgidav server
@@ -97,7 +98,7 @@ to stop them:
97 98
     # pyramid webserver
98 99
     uwsgi --stop /tmp/tracim_web.pid
99 100
     # webdav wsgidav server
100
-    uswgi --stop /tmp/tracim_webdav.pid
101
+    uwsgi --stop /tmp/tracim_webdav.pid
101 102
 
102 103
 ### With Waitress (legacy way, usefull for debug) ###
103 104
 

+ 2 - 0
wsgi/webdav.py Parādīt failu

@@ -4,7 +4,9 @@ from tracim.lib.webdav import WebdavAppFactory
4 4
 import os
5 5
 
6 6
 config_uri = os.environ['TRACIM_CONF_PATH']
7
+webdav_config_uri = os.environ['TRACIM_WEBDAV_CONF_PATH']
7 8
 app_factory = WebdavAppFactory(
8 9
     tracim_config_file_path=config_uri,
10
+    webdav_config_file_path=webdav_config_uri,
9 11
 )
10 12
 application = app_factory.get_wsgi_app()