From d91937d8ba38989511eea6eefceaaeb3200a5558 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Thu, 6 May 2010 13:52:12 -0400 Subject: [PATCH] Added a note about Virtualenv. --- doc/site/deployment.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/site/deployment.rst b/doc/site/deployment.rst index 5c8ef95b..ddb86d2e 100644 --- a/doc/site/deployment.rst +++ b/doc/site/deployment.rst @@ -142,6 +142,14 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. A autorestart=true redirect_stderr=True +Working with Virtualenv +----------------------- + +To serve an app from a Virtualenv_ it is generally easiest to just install +Gunicorn directly into the Virtualenv. This will create a set of Gunicorn +scripts for that Virtualenv which can be used to run applications normally. + + .. _Nginx: http://www.nginx.org .. _slowloris: http://ha.ckers.org/slowloris/ .. _`example configuration`: http://github.com/benoitc/gunicorn/blob/master/examples/nginx.conf @@ -149,3 +157,4 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. A .. _`example service`: http://github.com/benoitc/gunicorn/blob/master/examples/gunicorn_rc .. _Supervisor: http://supervisord.org .. _`simple configuration`: http://github.com/benoitc/gunicorn/blob/master/examples/supervisor.conf +.. _Virtualenv: http://pypi.python.org/pypi/virtualenv