[Rails] Re: Simulating script/console for backend process

2009-02-25 Thread MaurĂ­cio Linhares
Go to your RAILS_ROOT folder and then: script/runner here goes the name of your script -e production Read the help: script/runner -h Usage: script/runner [options] ('Some.ruby(code)' or a filename) -e, --environment=name Specifies the environment for the runner to operate under

[Rails] Re: Simulating script/console for backend process

2009-02-25 Thread Sarah Mei
Generally, you want to put this sort of thing in a rake task (instead of a script) and then your cron is just cd /application_rails_directory; rake do_my_thing --RAILS_ENV=production On Wed, Feb 25, 2009 at 12:57 PM, Duane Morin rails-mailing-l...@andreas-s.net wrote: I could swear I've seen