# A deployment newbie trouble getting capistno project deploye

**URL:** <https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822>\
**Category:** Rails\
**Created:** [November 21, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822 "2008-11-21T14:10:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![r-a-mueller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Post date:** [November 21, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822/1 "2008-11-21T14:10:02Z")

</div>

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](http://www.mackstar.net)”  
role :app, “[www.mackstar.net](http://www.mackstar.net)”  
#role :db, “[www.mackstar.net](http://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

---

<div class="post-metadata">

**Author:** ![r-a-mueller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Post date:** [November 22, 2008, 2:44am UTC](https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822/2 "2008-11-22T02:44:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![r-a-mueller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Post date:** [November 22, 2008, 2:58am UTC](https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822/3 "2008-11-22T02:58:56Z")

</div>

Jeff P. 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

---

<div class="post-metadata">

**Author:** ![r-a-mueller](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/dfb087/32.png) [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Post date:** [November 22, 2008, 4:37am UTC](https://www.ruby-forum.com/t/a-deployment-newbie-trouble-getting-capistno-project-deploye/153822/4 "2008-11-22T04:37:04Z")

</div>

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
