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