public
Description: OneBody is free, open-source, web-based social networking and online directory software for churches.
Home | Edit | New

CrontabSetup

OneBody has a handful of tasks that run on a scheduled basis. We use plain ol’ crontab.

First, do some EmailSetup.

Second, check that you don’t already have anything in your crontab. If you do, you may wish to edit it manually instead of performing the steps below. Because it will be overwritten.

crontab -e # check for existing crontab entries

You’ll need the “whenever” gem from Javan Makhmali installed first:

gem install chronic
gem install javan-whenever -s http://gems.github.com

See what entries will be added:

cd path/to/onebody
whenever

You should see something resembling a crontab file. If you don’t see a line with script/inbox in it, then your config/email.yml file couldn’t be found.

Now, to update your user crontab (this does not change /etc/crontab), issue the following command (warning: this will overwrite your entire user crontab):

whenever -w
Last edited by seven1m, Mon Mar 02 08:04:04 -0800 2009
Home | Edit | New
Versions: