Skip to content

Commit 1933428

Browse files
committed
Add wsgi.py to frontends. Update docs.
1 parent cd8f0e8 commit 1933428

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

doc/installation.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ uses a front end web server like nginx, hiawatha, apache configured as
950950
a reverse proxy. See your web server's documentation on how to set it
951951
up as a reverse proxy.
952952

953-
The file wsgi.py should be in the current directory with the
954-
contents::
953+
The file wsgi.py (obtained from ``frontends/wsgi.py``) should be in
954+
the current directory with the contents::
955955

956956
# if roundup is not installed on the default PYTHONPATH
957957
# set it here with:

frontends/README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ This directory contains alternate front-ends for Roundup.
33
roundup.cgi
44
This is a cgi-bin script.
55

6+
wsgi.py
7+
This is a wrapper to be used when running under wsgi.
8+
69
ZRoundup
710
This is a simple Zope frontend that installs as a regular Zope product.
811

frontends/wsgi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# If you installed roundup to the system locations
2+
# using pip you don't need to change this
3+
# section. If you installed roundup in a custom
4+
# location, uncomment these lines and change the
5+
# path in the append() method to your custom path.
6+
#import sys
7+
#sys.path.append('/custom/location/where/roundup/is/installed')
8+
9+
# Obtain the WSGI request dispatcher
10+
from roundup.cgi.wsgi_handler import RequestDispatcher
11+
12+
# Set the path to tracker home.
13+
tracker_home = '/path/to/tracker'
14+
15+
# Definition signature for app: app(environ, start_response):
16+
app = RequestDispatcher(tracker_home)

0 commit comments

Comments
 (0)