Production Mode.. One liner question

Hello Champs,

Just a one liner question. I have written a script to put data into
production database. Where to execute that script ?

On Thu, Mar 18, 2010 at 1:00 PM, Hemant B. [email protected]
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.

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

Cheers …

Xavier N. wrote:

On Thu, Mar 18, 2010 at 1:00 PM, Hemant B. [email protected]
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.