abenkbp commited on
Commit
4bb932e
·
1 Parent(s): 13ae5b3
Files changed (1) hide show
  1. app.py +1 -1
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"~/.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
 
 
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