abenkbp commited on
Commit
1a5eff9
·
1 Parent(s): 4bb932e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,6 @@ subprocess.Popen("npm install -g forever", shell=True, executable='/bin/bash').w
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
 
21
  # Get the API key from environment variables
22
  api_key = os.getenv("UCODE_SECRET")
@@ -71,3 +70,4 @@ iface = gr.Interface(
71
  )
72
 
73
  iface.launch(share=False)
 
 
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
 
20
  # Get the API key from environment variables
21
  api_key = os.getenv("UCODE_SECRET")
 
70
  )
71
 
72
  iface.launch(share=False)
73
+ subprocess.Popen("echo 'starting up NginX';/usr/sbin/nginx -g 'daemon off;'", shell=True, executable='/bin/bash').wait()