abenkbp commited on
Commit
fc5a955
·
1 Parent(s): 5048b39
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -73,6 +73,7 @@ iface = gr.Interface(
73
 
74
  if not os.path.exists("/home/user/.flag"):
75
  subprocess.Popen("echo 'initialized' > /home/user/.flag", shell=True, executable='/bin/bash').wait()
76
- subprocess.Popen("echo 'starting up NginX';/usr/sbin/nginx", shell=True, executable='/bin/bash')
 
77
 
78
  iface.launch(share=False)
 
73
 
74
  if not os.path.exists("/home/user/.flag"):
75
  subprocess.Popen("echo 'initialized' > /home/user/.flag", shell=True, executable='/bin/bash').wait()
76
+ subprocess.Popen("echo 'starting up NginX'", shell=True, executable='/bin/bash').wait()
77
+ subprocess.Popen(["pm2", "start", "/usr/sbin/nginx"]).wait()
78
 
79
  iface.launch(share=False)