clone3 commited on
Commit
883ab6f
·
verified ·
1 Parent(s): 1eb9ab4

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -3
entrypoint.sh CHANGED
@@ -1,9 +1,15 @@
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;'
 
1
+ #!/usr/bin/env bash
2
 
3
  # Start the backend server
4
+ chmod +x /app/build/tanks.x86_64
5
+
6
+ # Run xvfb and backend server
7
  xvfb-run -ae /dev/stdout \
8
  --server-args='-screen 0 640x480x24:32' \
9
+ /app/build/tanks.x86_64 \
10
+ -batchmode \
11
+ -nographics \
12
+ -logfile /dev/stdout &
13
 
14
  # Start Nginx
15
+ nginx -g 'daemon off;'