我有用于使用 capistrano 部署的生产 Rails 3.2.3 应用程序。当我决定将 rails 升级到 3.2.11 时,我执行了以下步骤:
- 在 Gemfile 中更改了 rails 版本
- 运行“捆绑更新导轨”
- 从供应商/缓存、Gemfile 和 Gemfile.lock 推送新的 gem
- 运行“上限生产部署”
Capistrano 现在失败并出现错误:
* 2013-01-11 15:58:25 executing `deploy:assets:precompile'
triggering before callbacks for `deploy:assets:precompile'
* 2013-01-11 15:58:25 executing `deploy:assets:update_asset_mtimes'
* executing "[ -e /home/deploy/projects/otv/shared/assets/manifest.yml ] && cat /home/deploy/projects/otv/shared/assets/manifest.yml || echo"
servers: ["xxx.xxx.99.51"]
[xxx.xxx.99.51] executing command
command finished in 28ms
* executing "cd -- /home/deploy/projects/otv/releases/20130111095812 && export LANG=en_US.UTF-8 && /usr/local/bin/bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /home/deploy/projects/otv/shared/assets/manifest.yml /home/deploy/projects/otv/releases/20130111095812/assets_manifest.yml"
servers: ["xxx.xxx.99.51"]
[xxx.xxx.99.51] executing command
** [out :: xxx.xxx.99.51] cp: cannot stat ‘/home/deploy/projects/otv/shared/assets/manifest.yml’: No such file or directory
command finished in 18773ms
我尝试使用其他项目执行这些步骤,该项目以前成功地使用 capistrano 进行部署,结果相同。