diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-08 00:14:43 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-08 00:14:43 +0900 |
| commit | 0d644012861798f37e041009fc818c9c9ab9352d (patch) | |
| tree | 6b65417f87de0fbe264532a3745ca60dd02ea29f /scripts | |
| parent | 8f64dcc0e4e389903e6a7198d0a2b11498fcd948 (diff) | |
Run scrape immediately on container start before handing off to cron
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/scraper-entrypoint.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/scraper-entrypoint.sh b/scripts/scraper-entrypoint.sh new file mode 100644 index 0000000..87bc0c8 --- /dev/null +++ b/scripts/scraper-entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +node --import tsx/esm scripts/scrape.ts + +exec cron -f |
