More Actions 1 of 150 Older › A deployment newbie trouble getting capistno project deployed with capistrano

50 views
Skip to first unread message

Richard

unread,
Nov 21, 2008, 8:05:28 AM11/21/08
to Deploying Rails
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

Aníbal Rojas

unread,
Nov 21, 2008, 2:08:59 PM11/21/08
to rubyonrails...@googlegroups.com
Try running:

svn info svn://mackstar.net/mainrepo -rHEAD

In the shell. Should give you the same error, check the path to your
svn repository, looks like you are missing the path.

--
Aníbal Rojas
http://hasmanydevelopers.com
http://rubycorner.com
http://anibal.rojas.com.ve

Tom Copeland

unread,
Nov 21, 2008, 9:44:01 PM11/21/08
to rubyonrails...@googlegroups.com

On Nov 21, 2008, at 8:05 AM, Richard 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

Here's a post I put up a while back on this topic:

http://tomcopeland.blogs.com/juniordeveloper/2008/05/capistrano-loca.html

Hope this helps,

Yours,

Tom

Richard

unread,
Nov 22, 2008, 5:15:37 AM11/22/08
to Deploying Rails
Thanks for your help, I realized I could do this by making a trunk
directory, a folder in the subversion repo root wasnt happy, it has
worked now, so thanks for the help

Many thanks

Richard
> http://tomcopeland.blogs.com/juniordeveloper/2008/05/capistrano-loca....
Reply all
Reply to author
Forward
0 new messages