Permalink
Browse files

Fix template name and fabfile.

  • Loading branch information...
1 parent 36327ed commit c8b4d0db42a64d34cdb06349604e6ebca418fc41 @ericholscher ericholscher committed Apr 13, 2012
Showing with 13 additions and 2 deletions.
  1. +12 −1 fabfile.py
  2. +1 −1 readthedocs/templates/all_builds.html
View
@@ -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'
@@ -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'])
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ build.project.name }}{% endblock %}
+{% block title %}Live Builds{% endblock %}
{% block content %}

0 comments on commit c8b4d0d

Please sign in to comment.