Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Social-Feed Plugin: Running a Cronjob

Started by Duc 9 years ago · 1 replies · 944 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 Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago