change to test uwsgi test.

This commit is contained in:
Joshua McKenty 2013-04-16 11:11:59 -07:00
parent de34f02926
commit 8bf5049123
3 changed files with 5 additions and 9 deletions

1
fabfile.py vendored
View File

@ -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')

View File

@ -4,12 +4,14 @@
<title>RefStack: What is it?</title>
</head>
<body>
<title>Hello from Flask</title>
<title>Welcome to Refstack</title>
{% if name %}
<h1>Hello {{ name }}!</h1>
{% else %}
<h1>Hello World!</h1>
{% endif %}
<h1>What is Refstack?</h1>
Who knows.
</body>
</html>

View File

@ -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()
return render_template('index.html')