soiz commited on
Commit
5312808
·
verified ·
1 Parent(s): c19a02c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from flask import Flask, send_from_directory
3
+
4
+ # リポジトリをクローン
5
+ os.system("git clone https://github.com/ozh/cookieclicker.git .")
6
+
7
+ app = Flask(__name__)
8
+
9
+ # index.htmlをルートパスで表示
10
+ @app.route('/')
11
+ def index():
12
+ return send_from_directory('.', 'index.html')
13
+
14
+ if __name__ == '__main__':
15
+ app.run(debug=True)