From 8bf5049123caaa4dcad9ce4300ddc75de4a8cc94 Mon Sep 17 00:00:00 2001 From: Joshua McKenty Date: Tue, 16 Apr 2013 11:11:59 -0700 Subject: [PATCH] change to test uwsgi test. --- fabfile.py | 1 + refstack/templates/index.html | 4 +++- refstack/web.py | 9 +-------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/fabfile.py b/fabfile.py index c8194b44..c1f2c3c7 100644 --- a/fabfile.py +++ b/fabfile.py @@ -18,3 +18,4 @@ def deploy(): with cd('/var/www/refstack'): run('git checkout master') run('git pull') + run('uwsgi --reload /tmp/project-master_refstack.pid') \ No newline at end of file diff --git a/refstack/templates/index.html b/refstack/templates/index.html index 3646cb21..9cedd069 100644 --- a/refstack/templates/index.html +++ b/refstack/templates/index.html @@ -4,12 +4,14 @@ RefStack: What is it? -Hello from Flask +Welcome to Refstack {% if name %}

Hello {{ name }}!

{% else %}

Hello World!

{% endif %} +

What is Refstack?

+Who knows. \ No newline at end of file diff --git a/refstack/web.py b/refstack/web.py index e45efaff..e0173534 100644 --- a/refstack/web.py +++ b/refstack/web.py @@ -21,11 +21,4 @@ app.debug = True @app.route('/', methods=['POST','GET']) def index(): - return render_template('index.html') - -# -# resource = WSGIResource(reactor, reactor.getThreadPool(), app) -# site = Site(resource) -# app.listeningPort = reactor.listenTCP(PORT, site) -# -# reactor.run() \ No newline at end of file + return render_template('index.html') \ No newline at end of file