seedproject-web/content-pipeline/run.sh
Carlos Arias 1559ce017d chore: scaffold SeedProject base (Phase 1)
Clean-room copy of the reusable engines from comiida, with all
instance data, secrets, dependencies, and build output excluded:
- app/         Astro theme skeleton (no comiida blog posts; hero image -> placeholder)
- api/         SeedProject PHP framework (no vendor/.env/config.php)
- content-pipeline/  engine only (scripts/admin/prompts; empty runtime state)
- astroagent.config.json + app/.astroagent/skills

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SYHWLHihq3v9nxNwoPCKSn
2026-07-04 22:53:10 +00:00

20 lines
544 B
Bash
Executable file

#!/usr/bin/env bash
# Wrapper so cron has a sane PATH and the secrets from .env.
# Usage: run.sh <script.mjs> [args...]
# run.sh research.mjs
# run.sh write-daily.mjs
# run.sh approve.mjs <slug>
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Tools (claude is under /root/.local/bin; node/npx under /usr/bin).
export PATH="/root/.local/bin:/usr/bin:/usr/local/bin:$PATH"
# Secrets (REPLICATE_API_TOKEN, etc.)
if [ -f "$DIR/.env" ]; then
set -a
. "$DIR/.env"
set +a
fi
exec node "$DIR/scripts/$1" "${@:2}"