0

这是发生错误的地方的 cap deploy 脚本输出的日志。有什么建议为什么会发生这种情况?谢谢!

    [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 ∴ 
4

1 回答 1

2

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

于 2012-04-06T10:20:15.070 回答