Richard Mcintyre
2008-Nov-21 13:10 UTC
A deployment newbie trouble getting capistno project deploye
I have a local project with I am versioning with a remote subversion resitory on which is on the same site as I am wanting to deploy my app. I have spent the last 3 hours trying to work this out, but I am lost I think capsitrano is having trouble connecting to my repository, my deploy.rb is as follows set :application, ''mackstarnet'' set :repository, "svn://mackstar.net/mainrepo" set :svn_username, "******" set :svn_password, "*****" set :deploy_to, "/var/www/railsdeploy" set :user, "deploy" default_run_options[:pty] = true task :production do role :web, "www.mackstar.net" role :app, "www.mackstar.net" #role :db, "www.mackstar.net", :primary=>true end cap deploy:cold * executing `deploy:cold'' * executing `deploy:update'' ** transaction: start * executing `deploy:update_code'' and here is when it looks like it starts going wonky! Any help would be appreciatted executing locally: "svn info svn://mackstar.net/mainrepo -rHEAD" svn: Server does not support retrieving information about the repository root *** [deploy:update_code] rolling back * executing "rm -rf /var/www/railsdeploy/releases/20081121122455; true" ** [deploy:update_code] exception while rolling back: Capistrano::NoMatchingServersError, `deploy:update_code'' is only run for servers matching {:except=>{:no_release=>true}}, but no servers matched /Library/Ruby/Gems/1.8/gems/capistrano-2.5.2/lib/capistrano/recipes/deploy/scm/subversion.rb:58:in `query_revision'': tried to run `svn info svn://mackstar.net/mainrepo -rHEAD'' and got unexpected result "" (RuntimeError) Many thanks Richard -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Pritchard
2008-Nov-22 01:44 UTC
Re: A deployment newbie trouble getting capistno project dep
I think your set :repository line is too short. It needs to reference the actual directory in the svn repo where your "app" and other rails files live. I''m thinking in your case that might be more like: set :repository, "svn://mackstar.net/mainrepo/mackstar" or maybe something like: set :repository, "svn://mackstar.net/mainrepo/mackstar/trunk/dev" You will need to look at how your project is set up inside the svn repo to get it right. jp Richard Mcintyre wrote:> I have a local project with I am versioning with a remote subversion > resitory on which is on the same site as I am wanting to deploy my > app. I have spent the last 3 hours trying to work this out, but I am > lost > > I think capsitrano is having trouble connecting to my repository, my > deploy.rb is as follows > > set :application, ''mackstarnet'' > set :repository, "svn://mackstar.net/mainrepo" > set :svn_username, "******" > set :svn_password, "*****" > > > Richard-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Richard Mcintyre
2008-Nov-22 01:58 UTC
Re: A deployment newbie trouble getting capistno project dep
Jeff Pritchard wrote:> I think your set :repository line is too short. It needs to reference > the actual directory in the svn repo where your "app" and other rails > files live. I''m thinking in your case that might be more like: > > set :repository, "svn://mackstar.net/mainrepo/mackstar" > > or maybe something like: > set :repository, "svn://mackstar.net/mainrepo/mackstar/trunk/dev" > > You will need to look at how your project is set up inside the svn repo > to get it right.Thanks Jeff, for your advice, I think that you are right at the moment I have my app at the top level of the repo which I think is not right, I will need to create a trunk and put it in there. I think? I will get on with that now and let you know how it goes... Much appreciatted.... Thanks Richard -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Richard Mcintyre
2008-Nov-22 03:37 UTC
Re: A deployment newbie trouble getting capistno project dep
Thanks again, By adding the trunk to the SVN repo I was able to get it working! Cheers Richard> Thanks Jeff, for your advice, > > I think that you are right at the moment I have my app at the top level > of the repo which I think is not right, I will need to create a trunk > and put it in there. I think? > > I will get on with that now and let you know how it goes... > > Much appreciatted.... > > Thanks > > Richard-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---