-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
1 parent
2bc9800
commit b11a609
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
**/obj/ | ||
**/bin/ | ||
SteamWebPipes | ||
game-scout | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |