尝试从 capistrano (cap deploy:migrate) 运行迁移时遇到问题。
latest => /var/www/site/releases/20110108002015
* executing "cd /var/www/site/releases/20110108002015; rake RAILS_ENV=production db:migrate"
servers: ["www.site.com"]
[www.site.com] executing command
** [out :: www.site.com] (in /var/www/site/releases/20110108002015)
** [out :: www.site.com] Could not find treetop-1.4.9 in any of the sources
** [out :: www.site.com] Try running `bundle install`.
command finished
failed: "sh -c 'cd /var/www/site/releases/20110108002015; rake RAILS_ENV=production db:migrate'" on www.site.com
事实;
- 导轨 3.0.0
- Ruby 1.9.2 通过 rvm
树顶 gem 已安装,如果我 ssh 进入远程服务器并运行 capistrano 手动尝试的命令,它可以正常工作。
还有其他人遇到这个或类似的问题吗?