Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add documentation about Workflow Reminder Task #78

Merged
merged 1 commit into from

2 participants

@oddnoc

No description provided.

@nyeholt nyeholt merged commit 05b4fbe into silverstripe-australia:ss24
@oddnoc oddnoc deleted the oddnoc:ss24-docs branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2013
  1. Add documentation about Workflow Reminder Task

    Fred Condo authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.md
View
8 README.md
@@ -26,6 +26,14 @@ To apply workflow to files, add this to _config.php:
Object::add_extension('File', 'FileWorkflowApplicable');
+Periodically run the Workflow Reminder Task by adding a task like this one to the crontab:
+
+ */1 * * * * cd /var/www && sudo -u www ./sapphire/sake dev/tasks/WorkflowReminderTask
+
+This is an example only. The key is to run the task as the same user as the web server.
+
+You can run the task manually for testing by visiting the `/dev/tasks/WorkflowReminderTask` URL of your site.
+
To enable embargo/expiry (scheduled publish/unpublish), use this:
Object::add_extension('SiteTree', 'WorkflowEmbargoExpiryExtension');
Something went wrong with that request. Please try again.