1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-09-19 15:30:34 +00:00

source RVM env in cron scripts

This commit is contained in:
Mark Heiges 2018-01-24 13:48:08 -05:00
parent da656b1b7e
commit c44bdb5b0c
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,9 @@
cd {{ redmine_root_dir }}
/usr/local/bin/bundle exec rake \
[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \
source "{{ rvm1_install_path }}/scripts/rvm"
{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \
eupathdb:fetch_changesets \
RAILS_ENV="production"

View File

@ -2,7 +2,10 @@
cd {{ redmine_root_dir }}
/usr/local/bin/bundle exec rake \
[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \
source "{{ rvm1_install_path }}/scripts/rvm"
{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \
redmine:email:receive_imap \
RAILS_ENV="production" \
project=sysdba \