I'm using a runner script to try and send batch email update, however I get the impression that the runner is not operating in production mode and as a result it is falling foul of the system I have in place to block emails goinc out in development in testing modes. Is there some way for me to force a runner to operate in a particular mode, or even to check the mode it is operating in? My current use of the runner is as follows: ruby script/runner DiscussionMailer.handle_weekly_post Many thanks in advance. CHEERS> SAM
on 2006-05-31 04:13
on 2006-05-31 07:29
script/runner --help Usage: runner 'puts Person.find(1).name' [options] -e, --environment=name Specifies the environment for the runner to operate under (test/development/production). Default: development -h, --help Show this help message. -- -- Tom M.