我正在使用 capistrano、unicorn、rbenv、nginx、linode、ubuntu 12.04 部署我的第一个 Rails 应用程序。当我跑
bin/cap 部署:冷
在我的应用程序根目录中,我收到以下错误:
* 2012-10-31 01:19:36 executing `bundle:install'
* executing "cd /home/mr_deployer/apps/prjct_mngr/releases/20121031001933 && bundle install --gemfile /home/mr_deployer/apps/prjct_mngr/releases/20121031001933/Gemfile --path /home/mr_deployer/apps/prjct_mngr/shared/bundle --deployment --quiet --without development test"
servers: ["xxxxxxxxxxxxx"]
[xxxxxxxxxxxxx] executing command
** [out :: xxxxxxxxxxxxx] Could not find rake-0.9.2.2 in any of the sources
** [out :: xxxxxxxxxxxxx] Run `bundle install` to install missing gems.
command finished in 1046ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/mr_deployer/apps/prjct_mngr/releases/20121031001933; true"
servers: ["xxxxxxxxxxxxx"]
[xxxxxxxxxxxxx] executing command
command finished in 625ms
failed: "sh -c 'cd /home/mr_deployer/apps/prjct_mngr/releases/20121031001933 && bundle install --gemfile /home/mr_deployer/apps/prjct_mngr/releases/20121031001933/Gemfile --path /home/mr_deployer/apps/prjct_mngr/shared/bundle --deployment --quiet --without development test'" on xxxxxxxxxxxxx
我已经在我的开发机器上运行了 bundle install --path vendor/bundle,并且 gem rake 安装在开发机器和 linode vps 上。为什么找不到rake?
更新:
我尝试将 linode 上的 rake gem 的路径添加到 linode 上的 bashrc 和 deploy.rb 文件中的 :default_envoronment 。仍然得到同样的错误......