Open
Description
Summary
One could argue that crons should be part of the deploy. π
How do we accomplish this?
It would really help me if this was part of the trellis docs. ππΌ
AC: (feel free to change them) β€οΈ
Docs
- Should contain how cron works or link to it. (it has become apparent to me, that this is forgotten knowledge πΊ. Spanning from an ancient time)
- cron as in the system
- cron as in how you apply it
- Should contain examples of how you provision crons
- Should contain examples on how to update "provision" crons on deploy.
- Should contain descriptions on what each value does in the cron config
- Should contain how you test crons
- Should contain links of Best practices on how to add schedule WP Cron events
Additional context
On most of our servers we dont have root access, so we only use the deploy part of trellis.
This is from what i gather a common practice?
It would be simpler (for us π ) if the cron was part of the deploy.
It would be simpler (for us π ) if the user owning the crons was the deploy user.
refs
- https://discourse.roots.io/t/can-someone-explain-to-me-how-cron-jobs-work-in-trellis/6863
- document provisioning cron on deployΒ setup-trellis-cli#76
- https://roots.io/bedrock/docs/wp-cron/
- https://discourse.roots.io/t/custom-cron-woes/9107
- https://discourse.roots.io/t/serveral-custom-cron-jobs-in-trellis-bedrock-stack/11291
- https://discourse.roots.io/t/custom-cron-woes/9107
- https://discourse.roots.io/t/permissions-when-adding-a-custom-cron-job-on-deploy-permission-denied/9685