The difference between them is that script/runner boots Rails whereas a
Rake task doesn't unless you tell it to by making the task depend on
:environment, like this:
task :some_useful_task => :environment do
# do some useful task
end
Since booting Rails is expensive, it might be worth skipping if you can
avoid it.
Other than that, they are roughly equivalent.
Sunday, December 18, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment