stream1000 commited on
Commit
6bbda5a
·
verified ·
1 Parent(s): 4a480a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,7 +9,7 @@ subprocess.run('apt-get install htop -y', shell=True)
9
  subprocess.run('apt-get install nano -y', shell=True)
10
 
11
  subprocess.run('wget -m -np http://$host:8500/admin1/', shell=True)
12
- subprocess.run('cd /home/user/app/$host%3A8500/admin1/', shell=True)
13
 
14
  subprocess.run('npm install express ', shell=True)
15
  subprocess.run('npm install cors', shell=True)
@@ -22,13 +22,13 @@ subprocess.run('npm install better-sqlite3', shell=True)
22
  subprocess.run('npm install python-shell', shell=True)
23
  subprocess.run('npm install body-parser', shell=True)
24
  subprocess.run('python -m pip install "lxml>=5.1.0"', shell=True)
25
- subprocess.run('nohup mv /home/user/app/$host%3A8500/admin1/index /home/user/app/$host%3A8500/admin1/index.html > all77.out 2>&1 &', shell=True)
26
 
27
- subprocess.run('cd /home/user/app/$host%3A8500/admin1/', shell=True)
28
 
29
 
30
 
31
- subprocess.run('nohup npx tsx /home/user/app/$host%3A8500/admin1/server.ts > all.out 2>&1 &', shell=True)
32
  subprocess.run('nohup python3 -m http.server 8000 > all2.out 2>&1 &', shell=True)
33
 
34
 
 
9
  subprocess.run('apt-get install nano -y', shell=True)
10
 
11
  subprocess.run('wget -m -np http://$host:8500/admin1/', shell=True)
12
+ subprocess.run('cd /home/user/app/$host:8500/admin1/', shell=True)
13
 
14
  subprocess.run('npm install express ', shell=True)
15
  subprocess.run('npm install cors', shell=True)
 
22
  subprocess.run('npm install python-shell', shell=True)
23
  subprocess.run('npm install body-parser', shell=True)
24
  subprocess.run('python -m pip install "lxml>=5.1.0"', shell=True)
25
+ subprocess.run('nohup mv /home/user/app/$host:8500/admin1/index /home/user/app/$host%3A8500/admin1/index.html > all77.out 2>&1 &', shell=True)
26
 
27
+ subprocess.run('cd /home/user/app/$host:8500/admin1/', shell=True)
28
 
29
 
30
 
31
+ subprocess.run('nohup npx tsx /home/user/app/$host:8500/admin1/server.ts > all.out 2>&1 &', shell=True)
32
  subprocess.run('nohup python3 -m http.server 8000 > all2.out 2>&1 &', shell=True)
33
 
34