rails s or bundle exec rails s

Viewed 8716

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?

2 Answers

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

rails server
Related