File size: 350 Bytes
5312808
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from flask import Flask, send_from_directory

# リポジトリをクローン
os.system("git clone https://github.com/ozh/cookieclicker.git .")

app = Flask(__name__)

# index.htmlをルートパスで表示
@app.route('/')
def index():
    return send_from_directory('.', 'index.html')

if __name__ == '__main__':
    app.run(debug=True)