Browse Source

fix webdav conf file : setup it in wsgi launcher

Guénaël Muller 6 years ago
parent
commit
79df94f1eb
2 changed files with 4 additions and 1 deletions
  1. 2 1
      README.md
  2. 2 0
      wsgi/webdav.py

+ 2 - 1
README.md View File

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

+ 2 - 0
wsgi/webdav.py View File

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