media: webtoon metadata (English title, artist, synopsis, years, adaptation) and stored covers with a cover grid
Deploy production / deploy (push) Successful in 1m24s
Deploy production / deploy (push) Successful in 1m24s
This commit is contained in:
1 parent
96d7333fe9
commit
3a2d3cc78c
10 files changed
+46302
-22
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#!/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]
|
||||
# scripts/media-run.sh covers ~/imports/covers/manifest.json --kind webtoons (scripts/media-covers.ts)
|
||||
# DB_URL (app role) comes from the running app container (db:5432 → 127.0.0.1:5440).
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
@@ -8,4 +9,5 @@ DB_URL=$(sudo -n docker inspect personal-website-app-1 --format '{{range .Config
|
||||
| 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
|
||||
if [ "${1:-}" = covers ]; then shift; exec bun scripts/media-covers.ts "$@"; fi
|
||||
exec bun scripts/media-import.ts "$@"
|
||||
Reference in new issue
Block a user