簡體   English   中英

`bundle exec`非常慢

[英]`bundle exec` very slow

  • Ruby版本:

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

     Bundler version 1.7.3 
  • Rails版本

     Rails 4.1.5 
  • 系統無所適從

當我執行命令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

我發現使用bundle exec運行腳本的問題很慢 ,但是當我執行命令time bin/rake db:migrate ,它也非常慢:

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

誰能告訴我發生了什么事?

謝謝

重新克隆存儲庫並執行命令bundle install ,問題已解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM