【问题标题】:Production assets:precompile fails during capistrano deploy生产资产:capistrano 部署期间预编译失败
【发布时间】:2012-08-29 00:42:12
【问题描述】:

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

[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

【问题讨论】:

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


    【解决方案1】:

    我今天也有类似的问题,试试下面这个问题的解决方案

    https://stackoverflow.com/a/11893146

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-05
      • 1970-01-01
      • 1970-01-01
      • 2013-11-04
      • 1970-01-01
      相关资源
      最近更新 更多