Skip to content

schedule: fix cronCommand() cd (pasted cron line now works) - #328

Merged
WebTigers merged 1 commit into
mainfrom
fix/scheduler-cron-command
Oct 6, 2026
Merged

WebTigers merged 1 commit into
mainfrom
fix/scheduler-cron-command

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

What

Schedule_Service_Schedule::cronCommand() returned php <root>/vendor/bin/tiger schedule:run …, but bin/tiger resolves the app root from the working directory — so pasting that line into crontab/cPanel fails with "run this from a Tiger app root (no vendor/autoload.php found)".

Fix: prefix with cd <root> && so the pasted line works:

cd /var/www/app && php vendor/bin/tiger schedule:run >/dev/null 2>&1

Why

Surfaced while wiring the TigerHosting Stripe-driven renewal job (a Tiger_Schedule daily job): the scheduler cron was absent on the fleet, and the Scheduler screen's own command didn't run when pasted.

Tests

No test asserts the exact string; ScheduleServiceTest checks it contains schedule:run and IndexControllerTest checks it's a string — both still pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ASauLLscjqdsNqBNsx2Typ

…e works

bin/tiger resolves the app root from the working directory, so the displayed cron line failed with
"run this from a Tiger app root" when pasted as-is. Prefix it with `cd <root> &&`. The two schedule
tests (string type; contains "schedule:run") still pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASauLLscjqdsNqBNsx2Typ
@WebTigers
WebTigers merged commit a2d11f2 into main Oct 6, 2026
14 checks passed
@WebTigers
WebTigers deleted the fix/scheduler-cron-command branch October 6, 2026 13:32
@WebTigers WebTigers mentioned this pull request Oct 7, 2026
WebTigers added a commit that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant