2014-09-23 51 views
0

我想部署一個Rails 4應用程序到VPS。rvm1/capistrano3不使用gemset

我Capfile,Gemfile中,deploy.rb在this gist

cap production deploy失敗捆綁安裝的步驟,因爲它不使用的寶石,並口口聲聲說沒有找到寶石。

cap

INFO[90fcd8c1] Running /tmp/domain_spam_checker/rvm-auto.sh 2.1.2 bundle exec gem install --file Gemfile on 162.221.181.224 DEBUG[90fcd8c1] Command: cd /home/deployer/domain_spam_checker/releases/20140922153958 && /tmp/domain_spam_checker/rvm-auto.sh 2.1.2 bundle exec gem install --file Gemfile DEBUG[90fcd8c1] [31mCould not find i18n-0.6.11 in any of the sources[0m DEBUG[90fcd8c1] [33mRun 'bundle install' to install missing gems.[0m cap aborted!

相關的輸出...

Tasks: TOP => deploy => rvm1:install:gems

如何提在安裝文件的某處使用寶石?

如何讓rvm1/cap3進行拾取或創建gemset?

回答

1

我從來沒有嘗試過這樣rvm1/capistrano3不能幫助你那裏,但我建議你使用capistrano/rvm代替(link

Capfile:

require 'capistrano/rvm' 

deploy.rb:

set :rvm_ruby_version, '[email protected]' 
+0

我已經提高了你的答案,因爲它幫助我解決了我的問題。 但不能接受它,因爲它不能解決問題。 會讓其他人回答,所以它可能會幫助他人。 :-) 非常感謝 – Arindam 2014-09-23 15:47:54