summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fabfile/__init__.py11
-rw-r--r--fabfile/helpers.py2
2 files changed, 10 insertions, 3 deletions
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')
diff --git a/fabfile/helpers.py b/fabfile/helpers.py
index ddeb7b8..418afb4 100644
--- a/fabfile/helpers.py
+++ b/fabfile/helpers.py
@@ -85,7 +85,7 @@ def identify():
with cd(env.proj_root):
run('git log -1')
ve_run('pip freeze')
- manage('migrate -list')
+ manage('migrate --list')
@task(alias='install')