Files
dokku/tests/apps/multi/app.py
Jose Diaz-Gonzalez be14329b9a chore: bump dependencies in tests/apps/multi
While not in the build path, we should try and avoid unsupported dependencies where possible.
2026-04-14 03:14:11 -04:00

16 lines
506 B
Python

import os
from flask import Flask, render_template
from werkzeug.middleware.shared_data import SharedDataMiddleware
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
app.wsgi_app = SharedDataMiddleware(app.wsgi_app, {'/': os.path.join(os.path.dirname(__file__), 'static')})
app.wsgi_app = SharedDataMiddleware(app.wsgi_app, {'/': os.path.join(os.path.dirname(__file__), 'static/.tmp')})
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True)