mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Add Upstart deployment example, remove Upstart from faq.
Add an Upstart deployment example and remove the Upstart entry in the FAQ.
This commit is contained in:
parent
e77d47cb97
commit
a49f4199e9
@ -201,6 +201,26 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. A
|
|||||||
autorestart=true
|
autorestart=true
|
||||||
redirect_stderr=True
|
redirect_stderr=True
|
||||||
|
|
||||||
|
Upstart
|
||||||
|
-------
|
||||||
|
Using gunicorn with upstart is simple. In this example we will run the app "myapp"
|
||||||
|
from a virtualenv. All errors will go to /var/log/upstart/myapp.log.
|
||||||
|
|
||||||
|
**/etc/init/myapp.conf**::
|
||||||
|
|
||||||
|
description "myapp"
|
||||||
|
|
||||||
|
start on (filesystem)
|
||||||
|
stop on runlevel [016]
|
||||||
|
|
||||||
|
respawn
|
||||||
|
console log
|
||||||
|
setuid nobody
|
||||||
|
setgid nogroup
|
||||||
|
chdir /path/to/app/directory
|
||||||
|
|
||||||
|
exec /path/to/virtualenv/bin/gunicorn myapp:app
|
||||||
|
|
||||||
Systemd
|
Systemd
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
@ -37,11 +37,6 @@ in tools like ``ps`` and ``top``. This helps for distinguishing the master
|
|||||||
process as well as between masters when running more than one app on a single
|
process as well as between masters when running more than one app on a single
|
||||||
machine. See the proc_name_ setting for more information.
|
machine. See the proc_name_ setting for more information.
|
||||||
|
|
||||||
Gunicorn fails to start with upstart
|
|
||||||
------------------------------------
|
|
||||||
|
|
||||||
Make sure you run gunicorn with ``--daemon`` option.
|
|
||||||
|
|
||||||
Why is there no HTTP Keep-Alive?
|
Why is there no HTTP Keep-Alive?
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user