pull/109/head
Mr Chen 7 years ago
parent 140e6e8629
commit 4ac07adf40
  1. 4
      .gitignore
  2. 11
      mdweb.py
  3. 1
      start.sh
  4. 1
      templates/index.html

4
.gitignore vendored

@ -102,3 +102,7 @@ venv.bak/
# mypy # mypy
.mypy_cache/ .mypy_cache/
.DS_Store
*.DS_Store

@ -1,6 +1,13 @@
from flask import Flask from flask import Flask
from flask import render_template
app = Flask(__name__) app = Flask(__name__)
app.debug = True
@app.route("/") @app.route("/h")
def hello(): def hello():
return "Hello World!" return "Hello World!"
@app.route("/")
def index(name=None):
return render_template('index.html', name=name)

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
DEBUG=True
gunicorn -b 127.0.0.1:7200 mdweb:app gunicorn -b 127.0.0.1:7200 mdweb:app
Loading…
Cancel
Save