abenkbp commited on
Commit
4aced3e
·
1 Parent(s): 68b4465
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -10,13 +10,7 @@ node = "source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm instal
10
  subprocess.call(["pip","install","--upgrade","pip"])
11
  subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
12
  subprocess.Popen(node, shell=True, executable='/bin/bash').wait()
13
-
14
- n8n = ["/home/user/.nvm/versions/node/v20.15.1/bin/npm", "install", "-g", "n8n"]
15
- process = subprocess.Popen(n8n, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
16
- stdout, stderr = process.communicate()
17
-
18
- # Optionally, you can wait for the process to finish
19
- process.wait()
20
 
21
  # Get the API key from environment variables
22
  key = "UCODE_SECRET"
 
10
  subprocess.call(["pip","install","--upgrade","pip"])
11
  subprocess.call("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash')
12
  subprocess.Popen(node, shell=True, executable='/bin/bash').wait()
13
+ subprocess.call(["/home/user/.nvm/versions/node/v20.15.1/bin/npm", "install", "-g", "n8n"])
 
 
 
 
 
 
14
 
15
  # Get the API key from environment variables
16
  key = "UCODE_SECRET"