Forum: Ruby on Rails Capistrano not working for me

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C2b4161642f421e35d537d8784dda71f?d=identicon&s=25 Steven Sacks (Guest)
on 2006-04-20 08:33
(Received via mailing list)
Hello fellow railers,

I'm new to the whole RoR thing and I have finished installing and
setting
everything up on my OSX G4 Powerbook.   I followed the step by step
instructions at Hivelogic, running lighttpd and everything else.  I'm
having
an issue with Capistrano.

I'm following the tutorial at Apple:
http://developer.apple.com/tools/rubyonrails.html

Everything in the tutorial worked fine until the very end.  It told me
to
install Capistrano, so I did.  I installed Capistrano as per the
following
url:
http://manuals.rubyonrails.com/read/chapter/98

It installed without issue.  I can type cap -h and it works fine.

But, when I type

cap --apply-to /path/to/my/app MyApplicationName (the syntax)

I get an error.  Specifically, from inside the expenses folder here's
what
happens.

---------------------------------------------
cap --apply-to /app MyExpenseApp

 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- /app/config/environment (LoadError)
         from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
         from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/generators
/rails/loader.rb:5:in `load!'
         from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:252
:in `execute_apply_to!'
         from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:223
:in `execute!'
         from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:
in `execute!'
         from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.1.0/bin/cap:11
         from /usr/local/bin/cap:18
-----------------------------------------------

I've tried going up a level and doing
cap --apply-to expenses/ MyExpenseApp
cap --apply-to expenses/app MyExpenseApp

What am I doing wrong?  Until I do this right, I can't use

$ rake deploy or $rake rollback

Thanks,
Steven
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-04-20 11:59
(Received via mailing list)
Change to the top level of the Rails' application directory
and type:

   cap --apply-to .

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