生产资产:在capistrano部署期间预编译失败

时间:2012-08-29 00:42:12

标签: ruby-on-rails-3 capistrano asset-pipeline

在部署期间,我得到以下输出:

[xx.xxx.xxx.xx] executing command
 ** [out :: xx.xxx.xxx.xx] ** Invoke assets:precompile (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Execute assets:precompile
 ** [out :: xx.xxx.xxx.xx] 
 ** [out :: xx.xxx.xxx.xx] ** Invoke assets:precompile:all (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Execute assets:precompile:all
 ** [out :: xx.xxx.xxx.xx] ** Invoke assets:precompile:primary (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Invoke assets:environment (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Execute assets:environment
 ** [out :: xx.xxx.xxx.xx] ** Invoke environment (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Execute environment
 ** [out :: xx.xxx.xxx.xx] ** Invoke tmp:cache:clear (first_time)
 ** [out :: xx.xxx.xxx.xx] ** Execute tmp:cache:clear
 ** [out :: xx.xxx.xxx.xx] ** Execute assets:precompile:primary
 ** [out :: xx.xxx.xxx.xx] Killed

bundle -v输出为1.1.5

我找到的解决方案是重启服务器并在之后立即部署。否则,我无法部署到生产环境,我不知道如何调试此问题,因为除了在部署时死亡之外没有其他输出。

编辑:服务器正在运行Ubuntu 12.04 x64

1 个答案:

答案 0 :(得分:3)

我今天遇到类似的问题,请尝试以下问题的解决方案

https://stackoverflow.com/a/11893146