2010-12-23 103 views
1

我想用Capistrano(2.5.19)部署一個Rails3應用程序。我已成功運行:爲什麼Capistrano 2拒絕部署帽子:部署帽子後感冒:安裝成功了?

cap deploy:setup 

並且在服務器上創建了正確的目錄。但是當我運行帽子部署:冷或帽部署腳本掛起一半。

shell$ cap deploy:cold 
    * executing `deploy:cold' 
    * executing `deploy:update' 
** transaction: start 
    * executing `deploy:update_code' 
    executing locally: "git ls-remote [email protected]:test.git master" 
    * executing "git clone -q [email protected]:test.git /home/deployer/www/apps/test/releases/20101223162936 && cd /home/deployer/www/apps/test/releases/20101223162936 && git checkout -q -b deploy be3165b74d52540742873c125fb85d04e1ee3063 && git submodule -q init && git submodule -q sync && git submodule -q update && (echo be3165b74d52540742873c125fb85d04e1ee3063 > /home/deployer/www/apps/test/releases/20101223162936/REVISION)" 
    servers: ["server.foo.com"] 
    [server.foo.com] executing command 

這裏是我的deploy.rb:

$:.unshift(File.expand_path("~/.rvm/lib")) 
    require 'rvm/capistrano' 
    set :rvm_ruby_string, 'jruby' 

    # main details 
    set :application, "test_sqlserver" 
    role :web, "server.foo.com" 
    role :app, "server.foo.com" 
    role :db, "server.foo.com", :primary => true 

    # server details 
    default_run_options[:pty] = true 
    ssh_options[:forward_agent] = true 
    set :deploy_to, "/home/deployer/www/apps/#{application}" 
    set :deploy_via, :checkout 
    set :user, :deployer 
    set :use_sudo, false 

    # repo details 
    set :scm, :git 
    set :repository, "[email protected]:test.git" 
    set :branch, "master" 
    set :git_enable_submodules, 1 

我相信我的文件權限設置正確

回答

0

看起來你無法在JRuby下運行Capistrano的,如JRuby的OpenSSL的沒有按」 t支持Net:SSH這是Capistrano的基礎。

http://jruby-extras.rubyforge.org/jruby-openssl/

+1

因爲同樣的原因,'cap deploy:setup`(和`cap deploy:check`)會失敗嗎? – jhwist 2011-03-15 21:29:23

相關問題