Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def clone_and_setup_repo():
|
|
13 |
shutil.rmtree(temp_dir)
|
14 |
|
15 |
print("Cloning the repository...")
|
16 |
-
result = os.system(f"git clone https://github.com/izum00/
|
17 |
|
18 |
if result != 0:
|
19 |
print("Error: Failed to clone the repository.")
|
@@ -24,7 +24,7 @@ def clone_and_setup_repo():
|
|
24 |
os.system("npm i")
|
25 |
os.system("cp config.example.toml config.toml")
|
26 |
os.system("npm run build")
|
27 |
-
os.system("
|
28 |
|
29 |
# index.htmlをカレントディレクトリに移動
|
30 |
index_html_path = os.path.join(temp_dir, 'index.html')
|
@@ -74,4 +74,4 @@ def check_main_js():
|
|
74 |
|
75 |
if __name__ == '__main__':
|
76 |
# port 7860でFlaskアプリを起動
|
77 |
-
app.run(host='0.0.0.0', port=7860)
|
|
|
13 |
shutil.rmtree(temp_dir)
|
14 |
|
15 |
print("Cloning the repository...")
|
16 |
+
result = os.system(f"git clone https://github.com/izum00/nebula --recursive {temp_dir}")
|
17 |
|
18 |
if result != 0:
|
19 |
print("Error: Failed to clone the repository.")
|
|
|
24 |
os.system("npm i")
|
25 |
os.system("cp config.example.toml config.toml")
|
26 |
os.system("npm run build")
|
27 |
+
os.system("npm start")
|
28 |
|
29 |
# index.htmlをカレントディレクトリに移動
|
30 |
index_html_path = os.path.join(temp_dir, 'index.html')
|
|
|
74 |
|
75 |
if __name__ == '__main__':
|
76 |
# port 7860でFlaskアプリを起動
|
77 |
+
app.run(host='0.0.0.0', port=7860)
|