mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Added details on using runit to the site's deploy section.
This commit is contained in:
parent
4ecc1441b9
commit
c74894f2a1
@ -128,7 +128,7 @@ Runit
|
|||||||
+++++
|
+++++
|
||||||
|
|
||||||
A popular method for deploying Gunicorn is to have it monitored by runit_.
|
A popular method for deploying Gunicorn is to have it monitored by runit_.
|
||||||
An `example service`_ definition::
|
Here is an `example service`_ definition::
|
||||||
|
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
@ -143,6 +143,15 @@ An `example service`_ definition::
|
|||||||
cd $ROOT
|
cd $ROOT
|
||||||
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
|
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
|
||||||
|
|
||||||
|
Save this as ``/etc/sv/[app_name]/run``, and make it executable
|
||||||
|
(``chmod u+x /etc/sv/[app_name]/run``).
|
||||||
|
Then run ``ln -s /etc/sv/[app_name] /etc/service/[app_name]``.
|
||||||
|
If runit is installed, gunicorn should start running automatically as soon
|
||||||
|
as you create the symlink.
|
||||||
|
|
||||||
|
If it doesn't start automatically, run the script directly to troubleshoot.
|
||||||
|
|
||||||
|
|
||||||
Supervisor
|
Supervisor
|
||||||
++++++++++
|
++++++++++
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user