In rails 3 does rails s
invoke bundler因此您無需執行bundle exec rails s
或者bundle exec
需要在您的應用程序中運行rails s
Gemfile環境?rails s或bundle exec rails
更新 它的瞭解,bundle exec
之前應該因爲不同版本的耙耙的任務中使用。有關更多詳情,請參閱http://railsapps.github.com/installing-rails-3-1.html。這個問題是關於軌道的腳本,如:
rails s
rails server
rails c
rails console
^如果bundle exec
這些軌道腳本之前使用,或者是捆綁在鐵軌命令調用?
我總是添加'別名rails ='捆綁exec rails'; alias rake ='bundle exec rake'到我的bashrc。問題解決了。 – meagar 2012-07-23 17:53:40
我不認爲'alias rails ='bundle exec rails'是必要的:請參閱: [http://railsapps.github.com/installing-rails-3-1.html](http://railsapps。 github.com/installing-rails-3-1.html) && [http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/](http: //yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/) – dylanjha 2012-07-25 21:49:39