users@glassfish.java.net

Re: Unable to deploy Rails app using Capistrano

From: Paul Blair <pblair_at_cyrusinnovation.com>
Date: Sat, 2 Jan 2010 20:07:15 -0500

I've found that deployment with Capistrano on JRuby can be a little tricky.
You may want to try putting the following in your deploy.rb to see if you
get a more interesting error message:

*ssh_options*[:*verbose*] = :debug

Also try calling cap with the --debug and --verbose options ("--verbose" can
be given more than once to increase the verbosity).

One thing we discovered was that we needed to install the edge highline gem,
which works with JRuby, in order to get the cursor handling to work properly
for things like password prompts.


On Sat, Jan 2, 2010 at 4:41 PM, <glassfish_at_javadesktop.org> wrote:

> I’ve been struggling on this rails app for the past week and a half – any
> help would be appreciated.
>
> Im running from a windows machine [vista]..using: latest rails to date [jan
> 2. 2010], capistrano 2.5.10, subversive plugin, TortoiseSVN
>
>
>
>
>
> I’ve so far:- created the remote repository, created ssh keys, edited the
> TortoiseSVN config file. Not sure if I’ve left out anything. Any suggestions
> would be greatly appreciated.
>
>
>
> Here’s the error message from satan..
>
>
>
> -- ERROR MESSAGE --
>
>
>
>
>
> * executing `deploy:cold'
>
> * executing `deploy:update'
>
> ** transaction: start
>
> * executing `deploy:update_code'
>
> executing locally: "svn info svn+ssh://
> mydomain.com/home/45454/data/svn/repository/ -rHEAD"
>
> checking for svn... yes
>
> Unable to open connection:
>
> Host does not existsvn: Connection closed unexpectedly
>
> *** [deploy:update_code] rolling back
>
> * executing "rm -rf
> /home/45454/containers/rails/wcn/releases/20091230175413; true"
>
> servers: ["mydomain.com"]
>
> [mydomain.com] executing command
>
> command finished
>
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/subversion.rb:58:in
> `query_revision': tried to run `svn info svn+ssh://
> mydomain.com/home/45454/data/svn/repository/ -rHEAD' and got unexpected
> result "" (RuntimeError)
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in
> `send'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in
> `method_missing'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:63:in
> `local'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy/scm/base.rb:35:in
> `method_missing'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/recipes/deploy.rb:38:in
> `load'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in
> `call'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:87:in
> `fetch'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/configuration/variables.rb:110:in
> `protect'
>
> ... 38 levels...
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/lib/capistrano/cli/execute.rb:14:in
> `execute'
>
> from
> C:/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.10/bin/cap:4
>
> from C:/Ruby/bin/cap:19:in `load'
>
> from C:/Ruby/bin/cap:19
> [Message sent by forum member 'qlientele2010' (hdubbeats_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=378373
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>