Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions deploy/p0dcasters-daemon.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ WorkingDirectory=/home/anthony/www/p0dcasters.com/app
ExecStart=/home/anthony/.local/share/mise/shims/bun scripts/daemon.mjs
Environment=HOME=/home/anthony
# The daemon's BullMQ queue: this site's own Redis (deploy/redis.sh).
Environment=REDIS_URL=redis://127.0.0.1:6393
Environment=REDIS_URL=redis://127.0.0.1:6393
Environment=REDIS_URL=redis://127.0.0.1:6394
Environment=PATH=/home/anthony/.local/share/mise/shims:/home/anthony/.local/bin:/usr/local/bin:/usr/bin:/bin
Restart=always
RestartSec=30
Expand Down
4 changes: 2 additions & 2 deletions deploy/redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# (@profullstack/scraper-daemon). One Redis per site, as the fleet does:
# redis:8-alpine, loopback only, AOF on, noeviction (BullMQ requires it), its own
# volume. Idempotent: creates the container once, leaves a running one alone.
# The daemon unit sets REDIS_URL=redis://127.0.0.1:6393.
# The daemon unit sets REDIS_URL=redis://127.0.0.1:6394.
set -eu
NAME=p0dcasters-redis
PORT=6393
PORT=6394
if docker inspect "$NAME" >/dev/null 2>&1; then
[ "$(docker inspect -f '{{.State.Running}}' "$NAME")" = true ] || docker start "$NAME" >/dev/null
else
Expand Down
Loading