Skip to content

Commit

Permalink
Add api_logs to fabfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Nov 1, 2013
1 parent 6687c83 commit 455d47c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def remove_project(project):
def ntpdate():
run('ntpdate-debian')

## Logging Awesomeness

@hosts(['newasgard.readthedocs.com', 'newchimera.readthedocs.com'])
def nginx_logs():
env.user = "root"
Expand All @@ -47,6 +49,13 @@ def cat_postcommit_logs():
env.user = "docs"
run("cat %s/logs/postcommit.log" % env.code_dir)

@hosts(['newasgard.readthedocs.com', 'newchimera.readthedocs.com'])
def api_logs():
env.user = "docs"
run("tail -f %s/logs/api.log" % env.code_dir)

## Normal bits

@hosts(['localhost'])
def i18n():
with lcd('readthedocs'):
Expand Down

0 comments on commit 455d47c

Please sign in to comment.