Skip to content
Snippets Groups Projects
Commit 58c43d8f authored by YAHYAOUI Firas's avatar YAHYAOUI Firas
Browse files

add: basic Flask project

parent cf251222
No related branches found
No related tags found
No related merge requests found
Pipeline #19351 passed
web: python app.py
app.py 0 → 100644
import os
from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
@app.route("/")
def hello():
return render_template('index.html')
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Celery Flask Application</title>
</head>
<body>
<h1>Greetings from Scalingo</h1>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment