Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Social-Feed Plugin: Running a Cronjob

Started by Duc 9 years ago · 1 replies · 1035 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 webmasterodp, 7 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 125 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 556 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago