diff --git a/docs/source/deploy.rst b/docs/source/deploy.rst index 72cd9574..267743cd 100644 --- a/docs/source/deploy.rst +++ b/docs/source/deploy.rst @@ -125,18 +125,40 @@ Monitoring will fork-exec which creates an unmonitored process and generally just confuses the monitor services. -Circus +Gaffer ------ -`Circus `_ can be +Using Gafferd and gafferctl ++++++++++++++++++++++++++++ + +`Gaffer `_ can be used to monitor gunicorn. A simple configuration is:: - [watcher:mywebapp] + [process: gunicorn] cmd = gunicorn -w 3 test:app - working_dir = /Users/benoitc/work/gunicorn/examples - send_hup = true + cwd = /path/to/project -Then you can easily manage Gunicorn using the `circusctl `_ command. +Then you can easily manage Gunicorn using `gafferctl `_. + + +Using a Procfile +++++++++++++++++ + +Create a ``Procfile`` in your project:: + + gunicorn = gunicorn -w 3 test:app + +You can any other applications that should be launched at the same time. + +Then you can start your gunicorn application using `gafferp `_.:: + + gafferp start + +If gafferd is launched you can also load your Procfile in it directly:: + + gafferp load + +All your applications will be then supervised by gafferd. Runit -----