Skip to content

Commit

Permalink
add ttally server
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Jan 11, 2025
1 parent cfebc0d commit 5a7f618
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/vps_install
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ clone_if_not_exists "git@github.com:purarue/my_feed.git" "$MY_FEED"
clone_if_not_exists "git@github.com:purarue/dbsentinel.git" "$DBSENTINEL"
clone_if_not_exists "git@github.com:purarue/currently_listening.git" "$CURRENTLY_LISTENING"
clone_if_not_exists "git@github.com:purarue/filmswap.git" "$FILMSWAP"
clone_if_not_exists "git@github.com:purarue/ttally_server.git" "$FILMSWAP"

expect_file "$NOTIFY_BOT/token.yaml"
expect_file "$NOTIFY_BOT/old"
Expand All @@ -138,6 +139,7 @@ mkdir_if_not_exists "$DBSENTINEL_LOGS"
mkdir_if_not_exists "$CURRENTLY_LOGS"
mkdir_if_not_exists "$FILMSWAP_LOGS"
mkdir_if_not_exists "$TRACK_LOGS"
mkdir_if_not_exists "$TTALLY_LOGS"

set +u

Expand Down
2 changes: 2 additions & 0 deletions directories
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ declare -rx DBSENTINEL="${CODE}/dbsentinel"
declare -rx CURRENTLY_LISTENING="${CODE}/currently_listening"
declare -rx FILMSWAP="${CODE}/filmswap"
declare -rx TRACK="${CODE}/track"
declare -rx TTALLY="${CODE}/tally_server"

declare -rx SHORTURL_DATA="${HOME}/shorturls"

Expand All @@ -35,5 +36,6 @@ declare -rx DBSENTINEL_LOGS="${LOGS_BASE}/dbsentinel"
declare -rx CURRENTLY_LOGS="${LOGS_BASE}/currently_listening"
declare -rx FILMSWAP_LOGS="${LOGS_BASE}/filmswap"
declare -rx TRACK_LOGS="${LOGS_BASE}/track"
declare -rx TTALLY_LOGS="${LOGS_BASE}/tally_server"

declare -rx SUPERVISOR_LOGS="${LOGS_BASE}/supervisor"
8 changes: 8 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ stderr_logfile=%(ENV_FILMSWAP_LOGS)s/err.log
autorestart=true
directory=%(ENV_FILMSWAP)s

[program:ttally_server]
command=bash -c "./run"
process_name=ttally_server
autorestart=true
directory=%(ENV_TTALLY)s
stdout_logfile=%(ENV_TTALLY_LOGS)s/out.log
stderr_logfile=%(ENV_TTALLY_LOGS)s/err.log

; [program:track]
; command=bash -c "./loop"
; process_name=track
Expand Down

0 comments on commit 5a7f618

Please sign in to comment.