Jason Fleetwood-Boldt wrote:
Finally, you probably almost certainly don't want to be running
RAILS_ENV="production" if you are developing locally on your own
machine. And learn to use a debugger-- I recommend byebug if you're
using Ruby 2.0 or above, and put "byebug" at the top of your rake task.
Then just run your rask task and verify that you fall into the debugger.
(I'm telling you this as a sanity check methodology because you are
trying to verify that you know how to run the task)

Thanks for the info and help. The app is on ruby 1.9.3, I was running rake on the production machine. I downloaded the app and have it running locally, but there are some display issues with development, so I was running production.

I see the task is running via cron every hour, it talks to an ftp server and gets a file list, then creates playlist files from the list of MP3 files it finds. I see the task has a lot of puts when 'ARGV = V', should I be able to run the task with the following command?

# rake utils:process_archive V'


--
Robert

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/546BAD1C.80003%40webtent.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to