2011-08-12 151 views
0

請原諒我的Rails noobitude。Bundler似乎沒有工作

運行軟件包安裝後,我所有的gem安裝都正確。

當我運行軟件包更新時,它會輸出我已安裝的寶石列表並告訴我「您的軟件包已完成!請使用bundle show [gemname]查看安裝了捆綁的寶石的位置。」

我試着'捆綁顯示耙'和輸出是完全一樣的。當我試圖耙db:使用bundle exec進行遷移時,輸出與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

這個問題沒有任何意義:(爲什麼你運行'bundle update'?'rake db:migrate'的第一個輸出是什麼,你期望它做什麼? –

+0

注意:'bundle update rake'會將bundle的rake版本更新爲最高版本受到其他寶石強制執行的限制的支持,重新使用。你使用的是Rails 3.0.5,所以Rake版本將會是基於'railties 3.0.5'中dep的0.8.7。要使用0.9.2,請升級到Rails 3.0.9。 –

+0

好吧,但我的意思是每個輸入輸出相同的東西,沒有任何變化。 Bundle exec db:migrate應該執行數據庫遷移,是嗎?但它沒有做任何事情,它只是輸出我粘貼在那裏的東西,並不執行數據庫遷移。爲什麼? – Oliver

回答