Ryan, my guess is you don't have any servers configured. Be sure to define at least a single server in a role (the role can be whatever you want):
role :whatever, "some.server.com" Sorry for the misleading error message. - Jamis On Mar 15, 2007, at 3:33 PM, rcreasey wrote: > > I'm having a difficult time wrapping my head around the differences > between the variables that capistrano uses internally and how to > reference them, specifically hosts, servers, etc. > > Basically, i'm trying to define servers on the fly to a generic recipe > file and it's not working: > > ## myrecipe.rb: > > desc > "get_date" > task :get_date > do > run "/bin/ > date" > end > > ## my problem: > [EMAIL PROTECTED] ~]$ cap -a get_date -f myrecipe.rb -s > hosts=web01,web02,web03 > * executing task get_date > * executing "/bin/date" > /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:545:in `execute_on_servers': The get_date task is > only run for servers matching {:desc=>"get_date"}, but no servers > matched (RuntimeError) > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/actor.rb:207:in `run' > from ./myrecipe.rb:3:in `load' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/actor.rb:159:in `instance_eval' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/actor.rb:159:in `get_date' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:268:in `send' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:268:in `execute_recipes!' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:268:in `each' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:268:in `execute_recipes!' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:239:in `execute!' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/lib/capistrano/cli.rb:12:in `execute!' > from /tools/ruby/x86_64/1.8.5/lib/ruby/gems/1.8/gems/ > capistrano-1.4.0/bin/cap:11 > from /usr/local/ruby/bin/cap:16:in `load' > from /usr/local/ruby/bin/cap:16 > > What am I doing wrong? > > - Ryan > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---