Create app.py
Browse files
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)
|