cookie / app.py
soiz's picture
Create app.py
5312808 verified
raw
history blame
350 Bytes
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)