getgrav / getgrav/grav-plugin-admin
Title: Suggestion: Add -v flag to default scheduler cron job for better debugging/logging.
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Body:
In the official Grav documentation (or installation instructions) suggesting the cron job for the scheduler, the current command is:
`(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -`
I suggest adding the -v (verbose) flag to the bin/grav scheduler command to improve logging and troubleshooting capabilities for users.
Proposed Change:
`(crontab -l; echo "* * * * * cd /path/to/grav/root;/usr/bin/php bin/grav scheduler -v 1>> /dev/null 2>&1") | crontab -`
_Note: While the output is still redirected to /dev/null in the default suggestion, having the -v flag ensures that if a user removes the redirection (1>> /dev/null 2>&1) for debugging, they get more detailed output immediately._
Contributor guide
Assessment
This issue has not been assessed yet.