diff --git a/.gitignore b/.gitignore index 894a44cc0..93e9083c2 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,7 @@ venv.bak/ # mypy .mypy_cache/ + + +.DS_Store +*.DS_Store diff --git a/mdweb.py b/mdweb.py index a86beaa6d..22c1d47dd 100644 --- a/mdweb.py +++ b/mdweb.py @@ -1,6 +1,13 @@ from flask import Flask +from flask import render_template + app = Flask(__name__) +app.debug = True -@app.route("/") +@app.route("/h") def hello(): - return "Hello World!" \ No newline at end of file + return "Hello World!" + +@app.route("/") +def index(name=None): + return render_template('index.html', name=name) \ No newline at end of file diff --git a/start.sh b/start.sh index 198d89f20..0307e5155 100755 --- a/start.sh +++ b/start.sh @@ -1,3 +1,4 @@ #!/bin/sh +DEBUG=True gunicorn -b 127.0.0.1:7200 mdweb:app \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 000000000..b2d525b29 --- /dev/null +++ b/templates/index.html @@ -0,0 +1 @@ +index \ No newline at end of file