change to test uwsgi test.
This commit is contained in:
parent
de34f02926
commit
8bf5049123
|
@ -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')
|
|
@ -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>
|
|
@ -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()
|
|
Loading…
Reference in New Issue