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 Mornini
On May 30, 2006, at 5:10 PM, Sam Joseph wrote:
> 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
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails