アプリケーション ( cap deploy:cold
) をデプロイしようとしていますが、すべてスムーズに進みます:
Could not find i18n-0.6.4 in any of the sources
今、私はこのような他の投稿を見てきましたが、それらはすべてパッセンジャーの問題を指摘しており、私の場合、代わりにサーバー (Ubuntu Server 12.04) に nginx があります。
私は Rails に比較的慣れていないので、ここで基本的なことを見逃している可能性がありますが、i18n がローカルにインストールされていることは知っています (OS X Mountain Lion)。
/Users/myhomedirectory/.rvm/gems/ruby-1.9.3-head/gems/i18n-0.6.4
問題は私のサーバーにありますか? どうすればこれにアプローチできますか?
よろしくお願いします。
カピストラーノレシピの下
require "rvm/capistrano"
server 'myserverip', :web, :app, :db, primary: true
set :application, "siac"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :rvm_type, :system
set :scm, :git
set :repository, "mygitdir"
set :branch, "master"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
namespace :deploy do
%w[start stop restart].each do |command|
desc "#{command} unicorn server"
task command, roles: :app, except: {no_release: true} do
run "/etc/init.d/unicorn_#{application} #{command}"
end
end
task :setup_config, roles: :app do
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
run "mkdir -p #{shared_path}/config"
put File.read("config/database.yml.tpl"), "#{shared_path}/config/database.yml"
puts "Now edit the config files in #{shared_path}."
end
after "deploy:setup", "deploy:setup_config"
task :symlink_config, roles: :app do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
after "deploy:finalize_update", "deploy:symlink_config"
desc "Make sure local git is in sync with remote."
task :check_revision, roles: :web do
unless `git rev-parse HEAD` == `git rev-parse origin/master`
puts "WARNING: HEAD is not the same as origin/master"
puts "Run `git push` to sync changes."
exit
end
end
before "deploy", "deploy:check_revision"
end
およびスタックトレース:
* executing "cd -- /home/deployer/apps/siac/releases/20130319035235 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /home/deployer/apps/siac/shared/assets/manifest.yml /home/deployer/apps/siac/releases/20130319035235/assets_manifest.yml"
servers: ["myserverip"]
[myserverip] executing command
** [out :: myserverip] Could not find i18n-0.6.4 in any of the sources
** [out :: myserverip] Run `bundle install` to install missing gems.
command finished in 905ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/deployer/apps/siac/releases/20130319035235; true"
servers: ["myserverip"]
[myserverip] executing command
command finished in 627ms
failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'default' -c 'cd -- /home/deployer/apps/siac/releases/20130319035235 && rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /home/deployer/apps/siac/shared/assets/manifest.yml /home/deployer/apps/siac/releases/20130319035235/assets_manifest.yml'" on myserverip