Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Oct 27, 2013
1 parent ca2e09f commit 45b822a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fabfile.py
Expand Up @@ -27,6 +27,10 @@ def nginx_logs():
env.user = "root"
run("tail -f /var/log/nginx/*.log")

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

@hosts(['localhost'])
def i18n():
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/core/views.py
Expand Up @@ -157,7 +157,7 @@ def bitbucket_build(request):
if request.method == 'POST':
obj = json.loads(request.POST['payload'])
rep = obj['repository']
branches = [rec['branch'] for rec in json['payload']['commits']]
branches = [rec['branch'] for rec in obj['commits']]
ghetto_url = "%s%s" % ("bitbucket.org", rep['absolute_url'].rstrip('/'))
log.info("(Incoming Bitbucket Build) %s [%s]" % (ghetto_url, ' '.join(branches)))
_build_url(ghetto_url, branches)
Expand Down

0 comments on commit 45b822a

Please sign in to comment.