Added tasks to manage the gunicorn process. Fixes #86.
authorLucian Ursu <lucian.ursu@gmail.com>
Fri, 22 Feb 2013 15:36:14 +0000 (17:36 +0200)
committerLucian Ursu <lucian.ursu@gmail.com>
Fri, 22 Feb 2013 15:36:14 +0000 (17:36 +0200)
fabfile.py

index e6b6ce0ab4b0a89fc6040f12d1ed986088e2cd07..7e344ebb6dbc5542f6f36c5d3900ef039c4a2ef9 100755 (executable)
@@ -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():
     """