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

Cronjobs Getting started

rosabraatz edited this page Jul 28, 2015 · 1 revision

Redis, Cronjobs

This guide should help you to get started with our cronjobs on your localhost in a few seconds:

Setting up

Installation

OS X:

brew install redis

Ubuntu:

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
sudo make install

Run Configuration

Please ensure to have the following launch configuration:

Webserver:        Unicorn
Server arguments: -c ./config/unicorn.rb

Regular usage

Notice: Please execute the following tasks from within our project folder

Start the reds server before starting the web server:

redis-server

Fetch course data right now (optional):

rake 'mammooc:update_course_data'

After you changed the config/schedule.rb file, make sure to update the crontab file as well:

whenever --update-crontab

This command has to be executed when setting up the cronjobs for the first time in order to start the timer.