debug
Browse files
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'
|
|
|
|
| 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)
|