5

I appreciate all the answers out there as to what bundle exec does, which is that it runs the following commands in the context of the Gemfile bundle. But why doesn't "rails server" need bundle exec? Seems like it should still apply.

philipkd
  • 910
  • 7
  • 20

1 Answers1

3

The rails command runs from the executable inside the script folder. If you remove this folder, you can see that rails commands stop working. rake however runs differently.

MurifoX
  • 14,991
  • 3
  • 36
  • 60