-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 1.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
run_app:
python3 app.py & sleep 30
wget -r http://127.0.0.1:8050/
wget -r http://127.0.0.1:8050/_dash-layout
wget -r http://127.0.0.1:8050/_dash-dependencies
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dcc/async-graph.js
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dcc/async-highlight.js
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dcc/async-markdown.js
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dcc/async-datepicker.js
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dash_table/async-table.js
wget -r http://127.0.0.1:8050/_dash-component-suites/dash/dash_table/async-highlight.js
wget -r http://127.0.0.1:8050/_dash-component-suites/plotly/package_data/plotly.min.js
mv 127.0.0.1:8050 pages_files
mkdir -p pages_files/assets
ls -a pages_files
#ls -a pages_files/assets
find pages_files -exec sed -i.bak 's|_dash-component-suites|Stat_dash\\/_dash-component-suites|g' {} \;
find pages_files -exec sed -i.bak 's|_dash-layout|Stat_dash/_dash-layout.json|g' {} \;
find pages_files -exec sed -i.bak 's|_dash-dependencies|Stat_dash/_dash-dependencies.json|g' {} \;
find pages_files -exec sed -i.bak 's|_reload-hash|Stat_dash/_reload-hash|g' {} \;
find pages_files -exec sed -i.bak 's|_dash-update-component|Stat_dash/_dash-update-component|g' {} \;
find pages_files -exec sed -i.bak 's|assets|Stat_dash/assets|g' {} \;
mv pages_files/_dash-layout pages_files/_dash-layout.json
mv pages_files/_dash-dependencies pages_files/_dash-dependencies.json
#mv assets/* pages_files/assets/
ps -C python -o pid= | xargs kill -9
clean_dirs:
ls
rm -rf 127.0.0.1:8050/
rm -rf pages_files/
rm -rf joblib