运行`gem pristine --all` ...将改善Spring的启动性能。 (实际上并没有这样做)

时间:2015-02-26 05:07:34

标签: ruby-on-rails ruby spring-gem

我在本地为我的Rails应用运行瘦服务器。每次我启动它时都会收到以下消息:

Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.

即使在我运行命令'gem pristine -all'之后,服务器也需要很长时间才能重新启动,然后会再次显示该消息。为什么这样?

2 个答案:

答案 0 :(得分:2)

gem update --system摆脱这条消息对我有用。

答案 1 :(得分:1)

我遇到了同样的问题。通过查看gem pristine --all的输出,我看到有几个宝石被跳过了

之类的消息
Skipped bigdecimal-1.1.0, it is bundled with old Ruby

我手动重新安装这些宝石以消除消息

gem uninstall bigdecimal
gem install bigdecimal