Forum: Ruby on Rails Switchtower deploy error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
85ab83078200dcd84ea993bdcda957b3?d=identicon&s=25 Edgar Gonzalez (Guest)
on 2006-01-27 20:50
(Received via mailing list)
I'm trying to deploy a rails app with no success.

I can execute: 'rake remote_exec ACTION=setup'

but when I try to execute : 'rake deploy'

I got this error:
loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0
/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task deploy
transaction: start
executing task update_code
querying latest revision...
[update_code] transaction: rollback
[update_code] rolling back
executing "rm -rf /home/[my_user]/apps/[my_app]/releases/20060127192840"
servers: ["www.[my_server].com"]
Password: *******

processing command
[www.[my_server].com] executing command
command finished
rake aborted!
No such file or directory - svn log -q -rhead
file:///home/[my_user]/repo/[my_app]/trunk

-------------------

But if I connect to my server with the same user I can execute the
command:

svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk

I can use tortoiseSVN no access my repo via svn+ssh

I change my shell to bash, with not success

Any clue?

Thx
992fe8c19bbbc27f2b562a9f96efc03d?d=identicon&s=25 Jamis Buck (Guest)
on 2006-01-27 20:59
(Received via mailing list)
Edgar,

SwitchTower won't work with file:// repositories. The repository must
be accessible to both the local host, and the remote host.

Also, in your case, the error is due to the 'svn' executable not
being found on the remote host. Is svn installed on the remote host?
If so, is it in the path?

- Jamis
85ab83078200dcd84ea993bdcda957b3?d=identicon&s=25 Edgar Gonzalez (Guest)
on 2006-01-27 21:08
(Received via mailing list)
Jamis,

The subversion is installed in the same server.

In the server (using the same user as I configure in deploy.rb) I can
execute:

svn log -q -rhead file:///home/[my_user]/repo/[my_app]/trunk

In the server the svn is in the PATH, also I added to the deploy.rb:

set :svn, "/usr/bin/svn"

with the same error

BTW, you said that "SwitchTower won't work with file:// repositories",
so I
have to change the url for some like svn+ssh?

Thx
85ab83078200dcd84ea993bdcda957b3?d=identicon&s=25 Edgar Gonzalez (Guest)
on 2006-01-27 21:11
(Received via mailing list)
Jamis,

I changed my repo to:

set :repository, "svn+ssh://[my_user]@[my_server]/[my_app]/trunk/"

This url is what I use in tortoiseSVN and works fine

but the error is the same:

No such file or directory - svn log -q -rhead
svn+ssh://[my_user]@[my_server]/[my_app]/trunk/

maybe the error is not related to SVN?

thx again
This topic is locked and can not be replied to.