From 9d900b714187941defc2051c325aa6302b52c327 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 3 Nov 2010 11:18:02 +0000 Subject: [PATCH] Use the off template when shutdown --- fabfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index f8635a6..86f659b 100644 --- a/fabfile.py +++ b/fabfile.py @@ -35,7 +35,6 @@ def setup(): deploy_repo() setup_virtualenv() - setup_db() def push(): @@ -128,6 +127,7 @@ def start(): require('path') with cd('%(path)s/dreddit-auth/' % env): + run('rm -f off.html') run('./start.sh') @@ -139,6 +139,7 @@ def stop(): require('path') with cd('%(path)s/dreddit-auth/' % env): + run('ln -s templates/off.html') run('kill `cat ./logs/auth.pid`') run('rm -f ./logs/auth.pid')