abenkbp commited on
Commit
5de0ddb
·
1 Parent(s): b77e897
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,13 +7,13 @@ import base64
7
  from huggingface_hub import InferenceClient, login
8
 
9
  reinstall = os.getenv("APP_REINSTALL")
 
10
  if reinstall:
11
  node_install_command = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm"
12
  subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
13
  subprocess.Popen(node_install_command, shell=True, executable='/bin/bash').wait()
14
  subprocess.Popen("npm install -g n8n", shell=True, executable='/bin/bash').wait()
15
  subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()
16
- subprocess.call("curl -o- file:///home/user/app/data/config_nginx.sh | bash", shell=True, executable='/bin/bash')
17
 
18
  subprocess.call(["forever", "start", "n8n"])
19
 
 
7
  from huggingface_hub import InferenceClient, login
8
 
9
  reinstall = os.getenv("APP_REINSTALL")
10
+ subprocess.call("curl -o- file:///home/user/app/data/config_nginx.sh | bash", shell=True, executable='/bin/bash')
11
  if reinstall:
12
  node_install_command = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm"
13
  subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
14
  subprocess.Popen(node_install_command, shell=True, executable='/bin/bash').wait()
15
  subprocess.Popen("npm install -g n8n", shell=True, executable='/bin/bash').wait()
16
  subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()
 
17
 
18
  subprocess.call(["forever", "start", "n8n"])
19