File tree Expand file tree Collapse file tree 5 files changed +32
-0
lines changed Expand file tree Collapse file tree 5 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ venv
2
+ fly.toml
3
+ .vscode
4
+ __pycache__
Original file line number Diff line number Diff line change
1
+ web : gunicorn hellofly:app
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments