Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Social-Feed Plugin: Running a Cronjob

Started by Duc 9 years ago · 1 replies · 987 views
9 years ago

I am using this social-feed plugin and it ask to run a line as a cronjob to get the posts locally.
https://github.com/moduleon/grav-plugin-social-feed

'/15 * php /path/to/my/site/bin/plugin social-feed fetch:posts'

It doesn't seem to run it. The error is: 'FATAL: Must be run from ROOT directory of Grav!'

Any ideas on how to rewrite this for cronjob? Running manually works. Just not as a cron .

9 years ago

Here is what worked for me.

/15 * cd /path/to/grav/site/; php bin/plugin social-feed fetch:posts > /dev/null 2>&1

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 135 11 hours ago
Support · by Rick Beebe, 6 days ago
2 99 2 days ago
Support · by blu3prince, 3 days ago
0 50 3 days ago
Support · by alex, 4 days ago
2 91 3 days ago
Support · by Marcel, 2 weeks ago
1 142 3 days ago