From: Lucian Ursu Date: Fri, 22 Feb 2013 15:36:14 +0000 (+0200) Subject: Added tasks to manage the gunicorn process. Fixes #86. X-Git-Tag: release-20150131~498^2~2^2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28aecaf9340495bcd7c1166a7f9dbfb223e87376;p=oweals%2Fkarmaworld.git Added tasks to manage the gunicorn process. Fixes #86. --- diff --git a/fabfile.py b/fabfile.py index e6b6ce0..7e344eb 100755 --- a/fabfile.py +++ b/fabfile.py @@ -183,6 +183,30 @@ def restart_celery(): manage_supervisor_proc('celeryd', 'restart') +@task +def start_gunicorn(): + """ + Starts the gunicorn process + """ + manage_supervisor_proc('gunicorn', 'start') + + +@task +def stop_gunicorn(): + """ + Stops the gunicorn process + """ + manage_supervisor_proc('gunicorn', 'stop') + + +@task +def restart_gunicorn(): + """ + Restarts the gunicorn process + """ + manage_supervisor_proc('gunicorn', 'restart') + + @task def deploy(): """