Update run.sh
Browse files
run.sh
CHANGED
@@ -1,22 +1,8 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
# Start Nginx
|
4 |
service nginx start
|
5 |
-
|
6 |
-
#
|
7 |
-
python -m http.server --directory ./static --bind 0.0.0.0 8000 & echo $! > http_server.pid
|
8 |
-
|
9 |
-
# Start the Uvicorn server for the backend
|
10 |
-
#uvicorn "app:app" --port 7860 --host 0.0.0.0 &
|
11 |
-
|
12 |
chmod +x /home/pn/app/build/linuxBuild.x86_64
|
13 |
-
|
14 |
-
|
15 |
-
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' /home/pn/app/build/linuxBuild.x86_64 -batchmode -nographics -port 7777 &
|
16 |
-
|
17 |
-
# Wait for Uvicorn to finish
|
18 |
-
wait
|
19 |
-
|
20 |
-
# Stop the Python HTTP server
|
21 |
-
pkill -F http_server.pid
|
22 |
-
rm http_server.pid
|
|
|
1 |
#!/bin/bash
|
2 |
|
|
|
3 |
service nginx start
|
4 |
+
python -m http.server --directory ./static --bind 0.0.0.0 7860 & echo $! > http_server.pid
|
5 |
+
#python -m http.server --directory ./page --bind 0.0.0.0 7778 & echo $! > http_server.pid
|
|
|
|
|
|
|
|
|
|
|
6 |
chmod +x /home/pn/app/build/linuxBuild.x86_64
|
7 |
+
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' /home/pn/app/build/linuxBuild.x86_64 -port 7777
|
8 |
+
wait $!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|