我有生產Rails 3.2.3應用程序,我使用capistrano進行部署。當我決定軌升級到3.2.11我沒有以下步驟:升級到Rails 3.2.11後Capistrano部署失敗
- 在Gemfile中改變軌道版本
- 運行「捆綁更新軌」
- 從供應商/緩存,Gemfile中和的Gemfile推動了新的寶石。鎖定
- 運行 「帽生產部署」
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部署的其他項目具有相同的結果。
非常感謝,史蒂夫! –
我正在使用capistrano 2.14.2,並在升級到Rails 4.0beta1後看到同樣的問題。有沒有降級的解決方案? - 我不確定我將從哪裏符號鏈接資產? –
@RomanGaufman清單文件的名稱已更改爲'manifest-a5247d227d9b50f54f7c66dc7e640bca.json'風格。您可以通過'/ home/deploy/www/ourapp/shared/assets'目錄中的'touch'命令創建'manifest.yml'來避免這個錯誤。 – Tsutomu