You should load the environment (paths, variables, exports, etc) before executing commands like
notice the point
. in the beginning, separated with space to the
To do it in a crontab, the best way is to create a script loading the environment plus your commands, something like:
rake redmine:send_reminders_all RAILS_ENV=production
After that, in the cron, you should execute this script.
Carlos R. Hernández
Was my answer helpful? Click on