Forum: Ruby on Rails Capistrano - run command

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.
John K. (Guest)
on 2006-03-22 02:31
(Received via mailing list)
Man, I can't wait to get my hands on the capistrano book when it
comes out :-).

I have the following task in capistrano.rake (any task in deploy.rb
just does not want to be called)

desc "Restarts the lighttpd server"
task :restart_server do
   run "/users/home/jkopanas/bin/lighttpdctrl restart"

When I run rake restart_server I get the following errror:

undefined method `run' for #<Object:0x1de968>

According to documentation and examples I should be able to use run
with no problem to execute commands on the server.  How come I am
getting an error.

Insight is greatly appreciated.

Your Friend,

John K.
Jamis B. (Guest)
on 2006-03-22 07:25
(Received via mailing list)
See the email I just sent in reply to your other message. :) The
problem is that you are confusing rake and capistrano tasks. The two
are not compatible, though they have similar syntaxes.

- Jamis
This topic is locked and can not be replied to.