Import project
This commit is contained in:
parent
de24acf550
commit
ddad26212e
|
@ -0,0 +1,3 @@
|
|||
## HelloFlask!
|
||||
|
||||
This is an example project demonstrating how to deploy a Flask app to Fly.io.
|
|
@ -0,0 +1,9 @@
|
|||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/<name>')
|
||||
def hello(name=None):
|
||||
return render_template('hello.html', name=name)
|
|
@ -0,0 +1,8 @@
|
|||
blinker==1.6.2
|
||||
click==8.1.3
|
||||
Flask==2.3.2
|
||||
gunicorn==20.1.0
|
||||
itsdangerous==2.1.2
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.2
|
||||
Werkzeug==2.3.3
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Hello from Fly.io</title>
|
||||
{% if name %}
|
||||
<h1>Hello, {{ name | capitalize }}!</h1>
|
||||
{% else %}
|
||||
<h1>Hello, World!</h1>
|
||||
{% endif %}
|
Loading…
Reference in New Issue