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.
Asked
Active
Viewed 60 times
5
-
1http://stackoverflow.com/a/23846736/3307520 good explanation here – Cyzanfar Apr 08 '16 at 18:02
1 Answers
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