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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Social-Feed Plugin: Running a Cronjob

Started by Duc 9 years ago · 1 replies · 800 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 Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago