On Thu, Apr 7, 2011 at 4:48 PM, Ichiro Saga <[email protected]> wrote:

> Thank you, Bryan.  It works like a charm after adding the codes you
> suggested!  If I run the rake task in production mode, do I need to
> change something in the rake file?
>
>
You're welcome. :-) No need to change anything in file to run in production
mode. A rake file will take the environment mode that the rails app is
running in. If you need to run the rake file while rails is not running it's
going to look for the environment variable RAILS_ENV. Set that in your shell
to the environment you want rake to run against and you're good to go.

B.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to