marcelbonnet / redmine_cron

Cron task management for Redmine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redmine Cron

One cron job to call Rake tasks managed by this plugin.

Watch the video

  • When creating a new Scheduled Task, the field Interval must be set in minutes .

Dependencies

  • RVM (Ruby Version Manager)

Installing

cd /opt/redmine
RAILS_ENV=production rake redmine:plugins:migrate NAME=redmine_cron

Crontab

An example for Linux crontab to call our task manager every 15 minutes:

*/15 * * * * REDMINE_LANG=pt-BR RAILS_ENV=production RUBY_VERSION=2.2.2 /opt/redmine/plugins/redmine_cron/cronjob.sh

The shell variables:

  • REDMINE_LANG sets the localized messages.
  • RAILS_ENV sets the environment (development, test, production, ...)
  • RUBY_VERSION sets the Ruby Version. The script calls RVM (Ruby Version Manager)

Everytime redmine:cron_job is called, this plugin will decide if the managed tasks must be run or not.

About

Cron task management for Redmine


Languages

Language:Ruby 48.8%Language:HTML 32.1%Language:CSS 12.2%Language:Shell 5.9%Language:JavaScript 1.0%