I'm trying to get a working capfile up and running on a new install of 
capistrano, and am having trouble. 

The back trace starts out (the full back trace is at the bottom of this 
e-mail).

failed to initialize site: capfile:56:in `server': wrong number of 
arguments (0 for 1) (ArgumentError)

That means it's blowing up on line 56 of the capfile, right?

This is line 56:

role :app, "#{server}"


'server' is a command-line supplied value, check and set earlier in the 
script via:

_cset(:server) { abort "Please specify a server: e.g. -S 
server=www.host.com" }

Did I use a word that is reserved now?

Any tips would be great!

j

Full traceback:

failed to initialize site: capfile:56:in `server': wrong number of 
arguments (0 for 1) (ArgumentError)
        from /srv/web/deployment-manager/releases/20070828190510/capfile:56:in 
`load'
        from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:172:in 
`load_from_file'
        from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:89:in `load'
        from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
        from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `each'
        from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
        from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `load_recipes'
        from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `each'
        from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `load_recipes'
        from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:30:in `execute!'
        from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:14:in `execute'
        from /usr/bin/cap:4


-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com - Fairbanks, AK
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to