Kev, What's the name of your application? Whatever it is (i.e. the name you chose when you initially executed the rails command to create the directory structure), that's the name you should set :application to within config/deploy.rb. To me, it looks like you're confusing it with the URL that would eventually be set up as a virtual host in apache.
If it helps, the slides for my recent to on "Getting started with Capistrano" are available at: http://keithpitty.org/presentations/ capistrano/GettingStartedWithCapistrano.pdf. Regards, Keith On 22/03/2007, at 10:12 PM, Kev wrote: > > Trying to deploy my first rails app to dreamhost using subversion and > capistrano and I'm having a nightmare! > > I've been using both http://wiki.dreamhost.com/index.php/Capistrano > and http://nubyonrails.topfunky.com/pages/shovel_dreamhost to walk me > through, but every single step has been a horrible obstacle. > > I've created a svn repository locally (as it kept hanging when trying > to create it online) and checked it out locally. I'm now working from > that directory, and my deploy.rb looks like this > > set :user, 'xxxxxxx' > set :application, "www.xxxxxxx.com" > > > set :repository, "file:///Users/Kev/Rails/svn/#{application}" > # NOTE: If file:/// doesn't work for you, try this: > #set :repository, "svn+ssh://home/#{user}/svn/mint" > > > role :web, application > role :app, application > role :db, application, :primary => true > > set :deploy_to, "/home/#{user}/#{application}" > # set :svn, "/path/to/svn" # defaults to searching the PATH > set :use_sudo, false > > > desc "Restart the FCGI processes on the app server as a regular > user." > task :restart, :roles => :app do > run "#{current_path}/script/process/reaper -- > dispatcher=dispatch.fcgi" > end > > desc "Remove the 'current' that dreamhost leaves lying around" #this > is here after everything else had failed > task :after_setup do > delete "#{current_path}", :recursive => true > end > > I can do cap setup fine, but then when I go to do cap deploy I get the > following error > > > [www.xxxxxxx.com] executing command > ** [out :: www.xxxxxxx.com] bash: line 1: cd: /home/xxxxxx/ > www.xxxxxx.com/current: No such file or directory > command finished > command "cd /home/xxxxxx/www.xxxxxx.com/current && rake > RAILS_ENV=production db:migrate" failed on www.xxxxxx.com > > It seems as if the symlink is not being created ... At what stage does > capistrano create the symbolic link? At setup or migrate? Because it's > doing neither for me and when I try to run cap symlink I get > > Password: > [www.xxxxxxx.com] executing command > command finished > /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/capistrano/ > configuration.rb:226:in `join': can't convert nil into String > (TypeError) > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/configuration.rb:226:in `release_path' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:560:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:560:in `method_missing' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:411:in `current_release' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/recipes/standard.rb:128:in `load' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:159:in `instance_eval' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/actor.rb:159:in `symlink' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:268:in `send' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:268:in `execute_recipes!' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:268:in `each' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:268:in `execute_recipes!' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:239:in `execute!' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/lib/ > capistrano/cli.rb:12:in `execute!' > from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.0/bin/ > cap:11 > from /usr/local/bin/cap:18:in `load' > from /usr/local/bin/cap:18 > > Could this be the root of the problem? I've already tried leaving the > after_setup task from deploy, in fact that was only added after I'd > spent a day trying to get it to work unsuccessfully. Any help is > greatly appreciated! > > > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
