Resolved..
We have to pass a RAILS_ENV variable at command line before ruby 
script/runner..

Cheers ..

Xavier Noria wrote:
> On Thu, Mar 18, 2010 at 1:00 PM, Hemant Bhargava <li...@ruby-forum.com> 
> wrote:
> 
>> Just a one liner question. I have written a script to put data into
>> production database. Where to execute that script ?
> 
> For scripts sometimes I create a bin directory. Those are run with
> script/runner.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to