import os | |
from flask import Flask, send_from_directory | |
# リポジトリをクローン | |
os.system("git clone https://github.com/ozh/cookieclicker.git .") | |
app = Flask(__name__) | |
# index.htmlをルートパスで表示 | |
def index(): | |
return send_from_directory('.', 'index.html') | |
if __name__ == '__main__': | |
app.run(debug=True) | |