Skip to content

Commit 88a9939

Browse files
committed
Add basic gunicorn configuration mechanism.
Works for me...
1 parent f848096 commit 88a9939

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

doc/installation.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ serving with SSL.
800800
WSGI Variations
801801
~~~~~~~~~~~~~~~
802802

803+
Apache Alternate
804+
^^^^^^^^^^^^^^^^
805+
803806
This method from Thomas Arendsen Hein goes into a bit more detail and
804807
is designed to allow you to run multiple roundup trackers each under
805808
their own user.
@@ -899,6 +902,35 @@ One last change is needed. In the tracker's config.ini change the db
899902
parameter in the [main] section to be /home/roundup-foo/db. This will
900903
put the files and messages in the db directory for the user.
901904

905+
Gunicorn Installation
906+
^^^^^^^^^^^^^^^^^^^^^
907+
908+
To run with gunicorn use pip to install gunicorn. This configuration
909+
uses a front end web server like nginx, hiawatha, apache configured as
910+
a reverse proxy. See your web server's documentation on how to set it
911+
up as a reverse proxy.
912+
913+
The file wsgi.py should be in the current directory with the
914+
contents::
915+
916+
# if roundup is not installed on the default PYTHONPATH
917+
# set it here with:
918+
import sys
919+
sys.path.append('/path/to/roundup/install/directory')
920+
921+
# obtain the WSGI request dispatcher
922+
from roundup.cgi.wsgi_handler import RequestDispatcher
923+
tracker_home = '/path/to/tracker/install/directory'
924+
925+
app = RequestDispatcher(tracker_home)
926+
927+
Assuming the proxy forwards /tracker, run gunicorn as::
928+
929+
SCRIPT_NAME=/tracker gunicorn --bind 127.0.0.1:8917 --timeout=10 wsgi:app
930+
931+
this runs roundup at port 8917 on the loopback interface. You should
932+
configure the reverse proxy to talk to 127.0.0.1 at port 8917.
933+
902934
Configure an Email Interface
903935
----------------------------
904936

0 commit comments

Comments
 (0)