debug
Browse files
app.py
CHANGED
|
@@ -12,11 +12,10 @@ if not os.path.exists("/home/user/.flag"):
|
|
| 12 |
subprocess.Popen("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash').wait()
|
| 13 |
subprocess.Popen("source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm", shell=True, executable='/bin/bash').wait()
|
| 14 |
subprocess.Popen("npm install n8n@latest -g", shell=True, executable='/bin/bash').wait()
|
| 15 |
-
subprocess.Popen("npm install forever@latest -g", shell=True, executable='/bin/bash').wait()
|
| 16 |
subprocess.Popen("npm install pm2@latest -g", shell=True, executable='/bin/bash').wait()
|
| 17 |
node_version_dir = subprocess.check_output("ls ~/.nvm/versions/node", shell=True, executable='/bin/bash').strip().decode('utf-8')
|
| 18 |
node_path = f"/home/user/.nvm/versions/node/{node_version_dir}/bin/"
|
| 19 |
-
subprocess.Popen(["
|
| 20 |
subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-1-8b.py","--interpreter=python3"]).wait()
|
| 21 |
subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-70b.py","--interpreter=python3"]).wait()
|
| 22 |
|
|
|
|
| 12 |
subprocess.Popen("curl -o- file:///home/user/app/data/setup.sh | bash", shell=True, executable='/bin/bash').wait()
|
| 13 |
subprocess.Popen("source /home/user/.bashrc && source /home/user/.nvm/nvm.sh && nvm install --lts && npm update -g npm", shell=True, executable='/bin/bash').wait()
|
| 14 |
subprocess.Popen("npm install n8n@latest -g", shell=True, executable='/bin/bash').wait()
|
|
|
|
| 15 |
subprocess.Popen("npm install pm2@latest -g", shell=True, executable='/bin/bash').wait()
|
| 16 |
node_version_dir = subprocess.check_output("ls ~/.nvm/versions/node", shell=True, executable='/bin/bash').strip().decode('utf-8')
|
| 17 |
node_path = f"/home/user/.nvm/versions/node/{node_version_dir}/bin/"
|
| 18 |
+
subprocess.Popen(["pm2", "start", f"{node_path}n8n"]).wait()
|
| 19 |
subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-1-8b.py","--interpreter=python3"]).wait()
|
| 20 |
subprocess.Popen(["pm2", "start", "/home/user/app/data/models/llama3-70b.py","--interpreter=python3"]).wait()
|
| 21 |
|