From 4f84488e15f92d4f0923655f6123fa4c65e5f8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Thu, 29 Mar 2012 00:54:27 +0200 Subject: add supervisor task/fix helpers.id task --- fabfile/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'fabfile/__init__.py') diff --git a/fabfile/__init__.py b/fabfile/__init__.py index 3cb9bb0..f1d74d7 100644 --- a/fabfile/__init__.py +++ b/fabfile/__init__.py @@ -5,8 +5,8 @@ Always prefix a task with the appropriate setup. Examples: $ fab setups.stage deploy - $ fab setups.production version - $ fab setups.prod load_fixture:fixtures/flatpages.json + $ fab setups.production helpers.id + $ fab setups.prod helpers.load_fixture:fixtures/flatpages.json """ from fabric.api import * @@ -31,3 +31,10 @@ def deploy(): helpers.syncdb() helpers.migrate() helpers.manage('supervisor start gunicorn') + + +@task +def supervisor(): + """Access to the supervisor shell. + """ + helpers.manage('supervisor shell') -- cgit v1.2.1