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