From e5beed9339b0258cf9bbda47c87743def8a78fbc Mon Sep 17 00:00:00 2001 From: chang-ning Date: Sat, 5 Mar 2016 23:44:48 +0800 Subject: [PATCH] Remove flask app --- Procfile | 1 - app.py | 27 --------------------------- 2 files changed, 28 deletions(-) delete mode 100644 Procfile delete mode 100644 app.py diff --git a/Procfile b/Procfile deleted file mode 100644 index a5f41f8e..00000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: make && gunicorn app:app --log-file - diff --git a/app.py b/app.py deleted file mode 100644 index 22a05185..00000000 --- a/app.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -This is a simple cheatsheet webapp. -""" -import os - -from flask import Flask, send_from_directory -from flask_sslify import SSLify - -DIR = os.path.dirname(os.path.realpath(__file__)) -ROOT = os.path.join(DIR, 'docs', '_build', 'html') - -app = Flask(__name__) -if 'DYNO' in os.environ: - sslify = SSLify(app) - -@app.route('/') -def static_proxy(path): - """Static files proxy""" - return send_from_directory(ROOT, path) - -@app.route('/') -def index_redirection(): - """Redirecting index file""" - return send_from_directory(ROOT, 'index.html') - -if __name__ == "__main__": - app.run(debug=True)