`捆绑exec`非常慢

时间:2014-10-14 09:01:28

标签: ruby-on-rails ruby bundler

  • Ruby版本:

    ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
    
  • 捆绑版本:

    Bundler version 1.7.3
    
  • Rails版

    Rails 4.1.5
    
  • 系统是Vagrant中的Gentoo

当我执行命令bundle exec annotate时:

Nothing annotated.
bundle exec annotate  4.33s user 54.82s system 46% cpu 2:08.45 total

Rake命令也很慢,例如bundle exec rake db:migrate

bundle exec rake db:migrate  4.31s user 55.93s system 53% cpu 1:51.99 total

我找到了问题running scripts with bundle exec is slow,但是当我执行命令time bin/rake db:migrate时,它也非常慢:

bin/rake db:migrate  3.58s user 49.47s system 45% cpu 1:55.34 total

所以有人能告诉我发生了什么错误吗?

由于

1 个答案:

答案 0 :(得分:0)

重新克隆repo并执行命令bundle install后,问题已解决。

相关问题