mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
remove duplicate by just using another word.
This commit is contained in:
parent
57369b38ba
commit
d7341a44b5
@ -123,6 +123,17 @@ if [ -f $PID ]; then rm $PID fi
|
|||||||
cd $ROOT
|
cd $ROOT
|
||||||
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
||||||
</pre>
|
</pre>
|
||||||
|
<p>Another useful tool to monitor and control Gunicorn is <a class="reference external" href="http://supervisord.org">Supervisor</a>. An
|
||||||
|
<a class="reference external" href="http://github.com/benoitc/gunicorn/blob/master/examples/supervisor.conf">simple configuration</a> is:</p>
|
||||||
|
<pre class="literal-block">
|
||||||
|
[program:gunicorn]
|
||||||
|
command=/usr/local/bin/gunicorn main:application -C /path/to/project/gunicorn.conf.py
|
||||||
|
directory=/path/to/project
|
||||||
|
user=nobody
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
redirect_stderr=True
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ A popular method for deploying Gunicorn is to have it monitored by runit_. An `e
|
|||||||
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
||||||
|
|
||||||
Another useful tool to monitor and control Gunicorn is Supervisor_. An
|
Another useful tool to monitor and control Gunicorn is Supervisor_. An
|
||||||
`example configuration`_ is::
|
`simple configuration`_ is::
|
||||||
|
|
||||||
[program:gunicorn]
|
[program:gunicorn]
|
||||||
command=/usr/local/bin/gunicorn main:application -C /path/to/project/gunicorn.conf.py
|
command=/usr/local/bin/gunicorn main:application -C /path/to/project/gunicorn.conf.py
|
||||||
@ -96,4 +96,4 @@ Another useful tool to monitor and control Gunicorn is Supervisor_. An
|
|||||||
.. _runit: http://smarden.org/runit/
|
.. _runit: http://smarden.org/runit/
|
||||||
.. _`example service`: http://github.com/benoitc/gunicorn/blob/master/examples/gunicorn_rc
|
.. _`example service`: http://github.com/benoitc/gunicorn/blob/master/examples/gunicorn_rc
|
||||||
.. _Supervisor: http://supervisord.org
|
.. _Supervisor: http://supervisord.org
|
||||||
.. _`example configuration`: http://github.com/benoitc/gunicorn/blob/master/examples/supervisor.conf
|
.. _`simple configuration`: http://github.com/benoitc/gunicorn/blob/master/examples/supervisor.conf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user