Change to the top level of the Rails'' application directory
and type:
cap --apply-to .
--
-- Tom Mornini
On Apr 19, 2006, at 11:29 PM, Steven Sacks wrote:
> 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
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails