Bundler似乎没有工作

时间:2011-08-12 03:03:11

标签: ruby-on-rails ruby-on-rails-3 bundle bundler

请原谅我的Rails noobitude。

运行捆绑安装后,我的所有宝石都安装正确。

当我运行捆绑包更新时,它会输出我已安装的宝石列表,并告诉我“您的捆绑包已完成!使用bundle show [gemname]查看捆绑的宝石的安装位置。”

我尝试'捆绑show rake'并且输出完全相同。当我尝试使用bundle exec rake db:migrate时,输出完全相同,甚至不会发生db迁移。

我的捆绑包有什么问题吗?

我很困惑。

$ bundle update rake
"BundlingUsing rake (0.8.7) 
Using abstract (1.0.0) 
Using activesupport (3.0.5) 
Using builder (2.1.2) 
Using i18n (0.6.0) 
Using activemodel (3.0.5) 
Using erubis (2.6.6) 
Using rack (1.2.3) 
Using rack-mount (0.6.14) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.29) 
Using actionpack (3.0.5) 
Using mime-types (1.16) 
Using polyglot (0.3.2) 
Using treetop (1.4.10) 
Using mail (2.2.19) 
Using actionmailer (3.0.5) 
Using arel (2.0.10) 
Using activerecord (3.0.5) 
Using activeresource (3.0.5) 
Using bundler (1.0.15) 
Using thor (0.14.6) 
Using railties (3.0.5) 
Using rails (3.0.5) 
Using sqlite3 (1.3.4) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,并在此处找到了我的解决方案:Bundler ignores groups in rails apps

要点: 执行以下操作:

rm .bundle/config
bundle install