In rails 3 does rails s
invoke bundler so that you don't need to do bundle exec rails s
or is bundle exec
required to run rails s
in your apps Gemfile environment?
Update
It's understood that bundle exec
should be used before rake tasks because of different rake versions. See http://railsapps.github.com/installing-rails-3-1.html for more details. This question is about rails scripts, like:
rails s
rails server
rails c
rails console
^Should bundle exec
be used before these rails scripts, or is bundler invoked by the rails command?
You should get this behavior in Rail >= 3.1 however you need to be careful because you may be using an older version of rake:
Quoted from: http://railsapps.github.com/installing-rails-3-1.html
It looks like the opposite it true for the rails command:
Quoted from: http://blog.wyeworks.com/2011/12/27/bundle-exec-rails-executes-bundler-setup-3-times
http://bundler.io/v1.5/rails3.html - "Rails 3 comes with baked in support with bundler...Bundler is transparently managing your dependencies!" So just run the server with