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'): with cd('/var/www/refstack'):
run('git checkout master') run('git checkout master')
run('git pull') run('git pull')
run('uwsgi --reload /tmp/project-master_refstack.pid')

View File

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

View File

@ -22,10 +22,3 @@ app.debug = True
@app.route('/', methods=['POST','GET']) @app.route('/', methods=['POST','GET'])
def index(): def index():
return render_template('index.html') return render_template('index.html')
#
# resource = WSGIResource(reactor, reactor.getThreadPool(), app)
# site = Site(resource)
# app.listeningPort = reactor.listenTCP(PORT, site)
#
# reactor.run()