Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Crontab Setup

Tim Morgan edited this page Sep 7, 2015 · 4 revisions

OneBody has a handful of tasks that run on a scheduled basis. We use plain ol' crontab. We use the whenever gem to manage the crontab file.

Set up Postfix first

The most important task run via cron is to check for incoming email from Postfix. If you plan on running your own email server, then first do some Email Setup, then update your crontab using the directions below.

Update the Crontab

To update your crontab, run:

cd /var/www/onebody
RAILS_ENV=production bundle exec whenever -w

See the Manual Installation page for some context.