Skip to content

Commit

Permalink
Fix template name and fabfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Apr 13, 2012
1 parent 36327ed commit c8b4d0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion fabfile.py
Expand Up @@ -3,7 +3,7 @@
import time

env.runtime = 'production'
env.hosts = ['chimera.ericholscher.com', 'ladon.ericholscher.com', 'build.ericholscher.com']
env.hosts = ['chimera.ericholscher.com', 'ladon.ericholscher.com', 'build.ericholscher.com', 'mozbuild.ericholscher.com']
env.user = 'docs'
env.code_dir = '/home/docs/sites/readthedocs.org/checkouts/readthedocs.org'
env.virtualenv = '/home/docs/sites/readthedocs.org'
Expand Down Expand Up @@ -35,11 +35,22 @@ def restart():
#so it has time to reload
time.sleep(3)

@hosts(['chimera.ericholscher.com', 'ladon.ericholscher.com'])
def reload():
"Restart (or just start) the server"
env.user = "docs"
pid = run("ps aux |grep gunicorn |grep master |awk '{ print $2 }'")
run('kill -HUP %s' % pid)
#so it has time to reload
time.sleep(3)

"""
@hosts(['chimera.ericholscher.com', 'ladon.ericholscher.com'])
def reload():
"Reload (or just start) the server"
env.user = "root"
run("reload readthedocs-gunicorn")
"""

@hosts(['build.ericholscher.com'])
#@hosts(['kirin.ericholscher.com'])
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/templates/all_builds.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block title %}{{ build.project.name }}{% endblock %}
{% block title %}Live Builds{% endblock %}

{% block content %}

Expand Down

0 comments on commit c8b4d0d

Please sign in to comment.