debug
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ subprocess.Popen("npm install -g n8n", shell=True, executable='/bin/bash').wait(
|
|
| 14 |
subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()
|
| 15 |
|
| 16 |
node_version_dir = subprocess.check_output("ls ~/.nvm/versions/node", shell=True, executable='/bin/bash').strip().decode('utf-8')
|
| 17 |
-
node_path = f"
|
| 18 |
subprocess.Popen(["forever", "start", f"{node_path}n8n"]).wait()
|
| 19 |
subprocess.Popen("echo 'starting up NginX';/usr/sbin/nginx -g 'daemon off;'", shell=True, executable='/bin/bash').wait()
|
| 20 |
|
|
|
|
| 14 |
subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').wait()
|
| 15 |
|
| 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(["forever", "start", f"{node_path}n8n"]).wait()
|
| 19 |
subprocess.Popen("echo 'starting up NginX';/usr/sbin/nginx -g 'daemon off;'", shell=True, executable='/bin/bash').wait()
|
| 20 |
|