Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How come rake needs bundle exec, but rails doesn't?

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.

like image 206
philipkd Avatar asked Oct 18 '22 12:10

philipkd


1 Answers

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.

like image 196
MurifoX Avatar answered Oct 21 '22 06:10

MurifoX