Forum: Ruby on Rails Rake Task not working

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jim S. (Guest)
on 2007-07-30 21:32
I've written a custom task named update_fbml.rake as follows:
namespace :remote do
  task :update_fbml => :environment do
    require "application"
    controller =
    # `script/runner "require #{RAILS_ROOT}/app/controllers/application;

This executes on my local machine but when I deploy to my build server
and type 'rake remote:update_fbml' it fails with "Don't know how to
build task 'remote:update_fbml'".

Any suggestions?
Christos Z. (Guest)
on 2007-07-31 00:38
(Received via mailing list)
Make sure all your 'require' directives actually exist on the build

If one of the .rake files can't load a required file (e.g. a gem)
then it won't actually get parsed properly by rake but you won't see
a failure message either. It just gets quietly dumped.

This topic is locked and can not be replied to.