summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/gunicorn.py (renamed from src/mailman/rest/gunicorn.py)3
-rw-r--r--src/mailman/docs/NEWS.rst2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman/rest/gunicorn.py b/contrib/gunicorn.py
index 489828715..829845c79 100644
--- a/src/mailman/rest/gunicorn.py
+++ b/contrib/gunicorn.py
@@ -20,6 +20,7 @@
To use this do the following:
* Install gunicorn as a Python 3 application (in a venv if necessary).
+* Copy this file into your Python's site-packages under the name mmgunicorn.py
* Create a mailman.cfg with at least the following in it:
[runner.rest]
@@ -28,7 +29,7 @@ To use this do the following:
* Start Mailman as normal: `mailman start`
* Set the MAILMAN_CONFIG_FILE environment variable to the location of your
mailman.cfg file from above.
-* Run: gunicorn mailman.rest.gunicorn:run
+* Run: gunicorn mmgunicorn:run
"""
from public import public
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst
index 5b580bd9d..d2d4a39d2 100644
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -195,6 +195,8 @@ REST
integers, since the latter are not compatible with all versions of
JavaScript. (Closes #121)
* REST clients must minimally support HTTP/1.1. (Closes #288)
+ * Experimental Gunicorn support. See ``contrib/gunicorn.py`` docstring for
+ details. With assistance from Eric Searcy. (Closes #287)
* The new template system is introduced for API 3.1. See
``src/mailman/rest/docs/templates.rst`` for details. (Closes #249)
* When creating a user via REST using an address that already exists, but