Deploy production / deploy (push) Successful in 1m22s
- /trackers/media: one card per child (reading, movies, shows, webtoons, music, podcasts, videos) with quick stats, a combined currently-consuming feed and a mixed watchlist - webtoons, podcasts, videos: new owner-editable trackers on one generic media.items table, JSON import (owner form or scripts/media-run.sh) - shows: /trackers/shows -> /trackers/movies?type=show; anime flag on movies.titles (backfilled, set from TMDB, owner toggle) and ?type=anime filter - nav: media replaces the top-level reading, movies and music entries; their URLs are kept
12 lines
610 B
Bash
Executable File
12 lines
610 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run scripts/media-import.ts on stan-ovh against prod, without printing secrets.
|
|
# scripts/media-run.sh ~/imports/webtoons.json --kind webtoons [--dry-run]
|
|
# DB_URL (app role) comes from the running app container (db:5432 → 127.0.0.1:5440).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
DB_URL=$(sudo -n docker inspect personal-website-app-1 --format '{{range .Config.Env}}{{println .}}{{end}}' \
|
|
| sed -n 's/^DB_URL=//p' | sed 's/@db:5432/@127.0.0.1:5440/')
|
|
[ -n "$DB_URL" ] || { echo "no DB_URL from the app container" >&2; exit 1; }
|
|
export DB_URL
|
|
exec bun scripts/media-import.ts "$@"
|