Qilan2 commited on
Commit
2861ce2
·
verified ·
1 Parent(s): 15e4e7d

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -3
server.py CHANGED
@@ -221,10 +221,10 @@ def frp():
221
  config_file.write(config_data)
222
  # frpc 启动命令和参数
223
  frpc_cmd = ['/content/frp/frpc', '-c', config_file_path]
224
- subprocess.Popen(frpc_cmd)
225
  print('-----------FPR结束-------------')
226
  # /content/frp/frpc -c /content/frp/frpc.ini
227
- # subprocess.run('/content/frp/frpc -c /content/frp/frpc.ini', shell=True, check=True)
228
 
229
  def SillyTavern():
230
  print('-----------SillyTavern开始-------------')
@@ -258,7 +258,6 @@ def SillyTavern():
258
  # threading.Thread(target=repeat_task, daemon=True).start()
259
  # threading.Thread(target=Oneapi, daemon=True).start()
260
  os.chdir('/sillytavern')
261
- frp()
262
  subprocess.run('yes | sh /sillytavern/start.sh', shell=True, check=True)
263
  subprocess.run('yes | sh /sillytavern/start.sh', shell=True, check=True)
264
  print('-----------SillyTavern结束-------------')
@@ -270,3 +269,4 @@ def SillyTavern():
270
  # run_commands(commands)
271
  threading.Thread(target=SillyTavern, daemon=True).start()
272
  check_api1()
 
 
221
  config_file.write(config_data)
222
  # frpc 启动命令和参数
223
  frpc_cmd = ['/content/frp/frpc', '-c', config_file_path]
224
+ # subprocess.Popen(frpc_cmd)
225
  print('-----------FPR结束-------------')
226
  # /content/frp/frpc -c /content/frp/frpc.ini
227
+ subprocess.run('/content/frp/frpc -c /content/frp/frpc.ini', shell=True, check=True)
228
 
229
  def SillyTavern():
230
  print('-----------SillyTavern开始-------------')
 
258
  # threading.Thread(target=repeat_task, daemon=True).start()
259
  # threading.Thread(target=Oneapi, daemon=True).start()
260
  os.chdir('/sillytavern')
 
261
  subprocess.run('yes | sh /sillytavern/start.sh', shell=True, check=True)
262
  subprocess.run('yes | sh /sillytavern/start.sh', shell=True, check=True)
263
  print('-----------SillyTavern结束-------------')
 
269
  # run_commands(commands)
270
  threading.Thread(target=SillyTavern, daemon=True).start()
271
  check_api1()
272
+ frp()