使用Capistrano,Rails 3.1 ruby​​ 1.9.2进行部署时出现“堆栈级太深”错误

时间:2012-04-06 05:24:45

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

以下是发生错误的cap部署脚本输出的日志。 Anny建议为什么会这样?谢谢!

    [yup.la] executing command
    [yup.la] sh -c 'cd /srv/www/portrait/releases/20120406051647 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'
 ** [out :: yup.la] rake aborted!
 ** [out :: yup.la] 
 ** [out :: yup.la] stack level too deep
 ** [out :: yup.la] (in /srv/www/portrait/releases/20120406051647/app/assets/stylesheets/mobile.css.scss)
 ** [out :: yup.la] 
 ** [out :: yup.la] Tasks: TOP => assets:precompile:primary
 ** [out :: yup.la] (See full trace by running task with --trace)
 ** [out :: yup.la] 
    command finished in 30868ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /srv/www/portrait/releases/20120406051647; true"
    servers: ["yup.la"]
    [yup.la] executing command
    [yup.la] sh -c 'rm -rf /srv/www/portrait/releases/20120406051647; true'
    command finished in 288ms
failed: "sh -c 'cd /srv/www/portrait/releases/20120406051647 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" on yup.la
/Users/victorstan/Sites/portrait ∴ 

1 个答案:

答案 0 :(得分:2)

尝试在Gemfile中将sass-rails版本从3.1.5更改为3.1.4。