Contenidos
main.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import os from flask import Flask, send_file app = Flask(__name__) @app.route("/") def index(): return send_file('src/index.html') def main(): app.run(port=int(os.environ.get('PORT', 80))) if __name__ == "__main__": main() |
index.html
1 2 3 4 5 6 7 8 9 10 11 12 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Hello World</title> </head> <body> <h1>Hello World</h1> </body> </html> |
