Spaces:
Build error
Build error
Create entrypoint_combined.sh
Browse files- entrypoint_combined.sh +13 -0
entrypoint_combined.sh
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env sh
|
2 |
+
|
3 |
+
# Start the backend server
|
4 |
+
chmod +x /app/build/tanks.x86_64
|
5 |
+
xvfb-run -ae /dev/stdout \
|
6 |
+
--server-args='-screen 0 640x480x24:32' \
|
7 |
+
/app/build/tanks.x86_64 \
|
8 |
+
-batchmode \
|
9 |
+
-nographics \
|
10 |
+
-logfile /app/logs/server.log &
|
11 |
+
|
12 |
+
# Start Nginx
|
13 |
+
nginx -g 'daemon off;'
|