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 · 916 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 Anna, 14 hours ago
1 46 7 hours ago
Support · by gtx, 1 week ago
4 227 1 day ago
Support · by Paul Hodges, 2 weeks ago
13 275 5 days ago
Support · by Anna, 3 weeks ago
9 334 1 week ago
Support · by TomW, 2 weeks ago
4 187 1 week ago