2013-12-12 17 views
5

私はthisチュートリアルに従ってrvm、ruby、rails、nginx、およびpassengerを設定しました。私はcapistranoとnode.jsをインストールしました。 。今、すべてが私は*のTEST_APPを展開しようとする時点まで正常に動作します*カプリストラー展開エラー:ステージが設定されていません

cap deploy:setup 

次のエラー作成します。今

cap production deploy 

[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. 
Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined. 

をこのエラーを作成します。

cap aborted! 
RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). 
/home/USER/.rvm/lib/rvm/capistrano.rb:3:in `<top (required)>' 
config/deploy.rb:5:in `<top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `load' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `block (2 levels) in <top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/bin/cap:3:in `<top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `load' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `<main>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>' 
Tasks: TOP => production 
(See full trace by running task with --trace) 

So私は、提案RVM-カピストラーノをインストールし、除去されたものでした* $ :.アンシフト(File.expand_path( './ libに'、ENV [ 'rvm_path']))*、次のエラー作成:

cap production deploy 
cap aborted! 
Unable to activate rvm-capistrano-1.5.1, because capistrano-3.0.1 conflicts with capistrano (~> 2.15.4) 
config/deploy.rb:5:in `<top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `load' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/setup.rb:12:in `block (2 levels) in <top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/lib/capistrano/application.rb:12:in `run' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/gems/capistrano-3.0.1/bin/cap:3:in `<top (required)>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `load' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:23:in `<main>' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval' 
/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>' 
Tasks: TOP => production 
(See full trace by running task with --trace) 

アイデア?

+0

新しい宝石を指摘するRVMのチケットを開くことができます

これは、次のエラーが作成されます'バンドルのexecキャップ生産deploy' – Kashyap

+0

を実行してみてください。 rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214: 'in block in replace_gem':capistranoはバンドルの一部ではありません。それをGemfileに追加します。 (宝石::とLoadError)/home/USER/.rvm/gems/から/home/USER/.rvm/gems/ruby-2.0.0-p353/bin/cap:22:in '

' \tから \t ruby-2.0.0-p353/bin/ruby​​_executable_hooks:15: 'eval' \t /home/USER/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in'
' ' – user3094719

+0

フォルダに' Gemfile'がありますか? – Kashyap

答えて

関連する問題