Skip to content

Commit

Permalink
supervisor config + build.sh
Browse files Browse the repository at this point in the history
- Added the supervisor config for game-scout. This only works if a built game-scout executable exists in the repo #8 (31/01/2023 - 13:14:48)
- Added the game-scout binary to the gitignore (31/01/2023 - 13:15:35)
- Added a script to build the entire project including the ScoutWebPipes executable (31/01/2023 - 13:22:10)
  • Loading branch information
andygello555 committed Jan 31, 2023
1 parent 2bc9800 commit b11a609
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
**/obj/
**/bin/
SteamWebPipes
game-scout

# Test binary, built with `go test -c`
*.test
Expand Down
14 changes: 14 additions & 0 deletions server/etc/supervisor/game-scout.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; Starts the worker(s) for game-scout
[program:game-scout]
directory=/mnt/game-scout
user=jakab.zeller
numprocs=1
stdout_logfile=/mnt/logs/game-scout/worker.log
stderr_logfile=/mnt/logs/game-scout/worker.log
autostart=true
autorestart=true
startsecs=10
command=/mnt/game-scout worker
stopwaitsecs=600
stopasgroup=true
priority=1000
11 changes: 11 additions & 0 deletions server/tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ROOT="$(git rev-parse --show-toplevel)"
UNAME="$(uname)"

cd "$ROOT/ScoutWebPipes"
if [ "$UNAME" == "Linux" ]; then
dotnet publish -r linux-x64 --no-self-contained
elif [ "$UNAME" == "Darwin" ]; then
dotnet publish -r osx.12-arm64 --no-self-contained
fi
cd "$ROOT"
go build

0 comments on commit b11a609

Please sign in to comment.