tools: private tools tracker (/trackers/tools): inventory of tools, batteries and consumables by category, +/- quantities, add/edit dialog, scripts/tools-run.sh for bots
Deploy production / deploy (push) Successful in 1m39s

This commit is contained in:
stan committed 2026-10-27 22:58:44 +00:00
1 parent 42711253b7
commit 7f71e88953
18 files changed
+47392 -3

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Run scripts/tools.ts on stan-ovh against prod, without printing secrets.
# scripts/tools-run.sh list | import <file.json> | add '<json>' | delete <id> (see scripts/tools.ts)
# 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/tools.ts "$@"