2011-10-26 8 views
3

私は現在、プロジェクトを展開するためにカピストラノを使用しています。ユニコーン(> = 0)が見つかりませんでした

$ cap deploy:start 

* executing `deploy:start' 
    * executing " /usr/local/rvm/gems/ruby-1.9.2-p290/bin/unicorn_rails -c /app/current/config/unicorn.rb -E production -D" 
    servers: ["x.x.x.x"] 
    [x.x.x.x] executing command 
** [out :: x.x.x.x] /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.**rb:247:in `to_specs': Could not find unicorn (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8]** (
** [out :: x.x.x.x] Gem::LoadError) 
** [out :: x.x.x.x] from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' 
** [out :: x.x.x.x] from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem' 
** [out :: x.x.x.x] from /usr/local/rvm/gems/ruby-1.9.2-p290/bin/unicorn_rails:18:in `<main>' 
** [out :: x.x.x.x] 
    command finished in 253ms 
failed: "sh -c '/usr/local/rvm/gems/ruby-1.9.2-p290/bin/unicorn_rails -c /app/current/config/unicorn.rb -E production -D'" on x.x.x.x 

ソフトウェアバージョン:3.1

  • ルビー-1.9.2-P290
  • のUbuntu 10.04
  • は誰でし

    • レールしかし、私は以下の問題を抱えています助けて?どうもありがとう!!

    答えて

    2

    カピストラーノは、PATHの右の変数を見つけることができない、GEM_PATHとGEM_HOME.Youは以下のようにconfig/deploy.rbでそれらを設定する必要があります。

    set :default_environment, { 
        'PATH' => "/usr/local/rvm/gems/ruby-1.9.2-p290/bin:/usr/local/rvm/gems/[email protected]/bin:/usr/local/rvm/rubies/ruby-1.9.2-p290/bin:/usr/local/rvm/bin:$PATH", 
        'RUBY_VERSION' => 'ruby 1.9.2p290', 
        'GEM_HOME' => '/usr/local/rvm/gems/ruby-1.9.2-p290', 
        'GEM_PATH' => '/usr/local/rvm/gems/ruby-1.9.2-p290:/usr/local/rvm/gems/[email protected]' 
    } 
    
    +0

    スーパーniubility – VvDPzZ

    0

    Unicorn gemがサーバーにインストールされていないようです。

    サーバーへのログインと

    which unicorn_rails 
    

    を実行し、それは任意のパスを返さない場合、それは利用できないことを意味します。 rootとしてログインし、インストールします。

    $ gem install unicorn 
    
    +0

    おかげシモーネ。 はいパスを返します /usr/local/rvm/gems/ruby-1.9.2-p290/bin/unicorn_rails –

    +0

    コマンド '/usr/local/rvm/gems/ruby-1.9.2を実行してみてください-p290/bin/unicorn_rails -c /app/current/config/unicorn.rb -Eプロダクション-D'をサーバ上で直接実行し、動作するかどうかを確認します。 –

    +0

    yeap。できます。カピストラーノを呼び出すだけでは機能しません。 : –

    関連する問題