Skip to content

Commit 2fa5ce3

Browse files
committed
First commit
0 parents  commit 2fa5ce3

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
venv
2+
fly.toml
3+
.vscode
4+
__pycache__

Diff for: Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn hellofly:app

Diff for: hellofly.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from flask import Flask, render_template
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/')
6+
@app.route('/<name>')
7+
def hello(name=None):
8+
return render_template('hello.html', name=name)
9+

Diff for: requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
click==7.1.2
2+
Flask==1.1.2
3+
gunicorn==20.0.4
4+
itsdangerous==1.1.0
5+
Jinja2==2.11.2
6+
MarkupSafe==1.1.1
7+
Werkzeug==1.0.1

Diff for: templates/hello.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
</head>
5+
<body>
6+
<h1>Hello from Fly</h1>
7+
{% if name %}
8+
<h2>and hello to {{name}}</h2>
9+
{% endif %}
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)