1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-09 22:40:36 +00:00

add redmine_fetch_changesets cron job

This commit is contained in:
Mark Heiges 2016-01-14 14:46:58 -05:00
parent 9eccd38026
commit 708a963739
2 changed files with 24 additions and 0 deletions

View File

@ -11,6 +11,8 @@
- gcc-c++
- ImageMagick-devel
- expect # for install_wrapper
- subversion # Repository integration
- git # Repository integration
- name: install bundler, redmine-installer gems
gem: name='{{ item }}'
@ -89,6 +91,12 @@
mode=750
sudo: no
- name: add redmine repository fetch script
template: dest='{{ redmine_root_dir }}/script/redmine_fetch_changesets'
src=redmine_fetch_changesets.j2
mode=750
sudo: no
- name: adding redmine_receive_imap crontab
cron: name="fetch from imap"
minute="*/5"
@ -96,3 +104,10 @@
user='{{ redmine_owner }}'
sudo: yes
- name: adding redmine_fetch_changesets crontab
cron: name="fetch from repository"
minute="*/5"
job="({{ redmine_root_dir }}/script/redmine_fetch_changesets 2>&1 | sed '/install RDoc/d') >> {{ redmine_root_dir }}/log/redmine_fetch_changesets"
user='{{ redmine_owner }}'
sudo: yes

View File

@ -0,0 +1,9 @@
#!/bin/bash
# retrieve svn changes for Redmine
cd {{ redmine_root_dir }}
/usr/local/bin/bundle exec rake \
redmine:fetch_changesets \
RAILS_ENV="production"