[英]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. 我很感谢bundle exec所做的所有答案,即它在Gemfile包的上下文中运行以下命令。 But why doesn't "rails server" need bundle exec? 但为什么“rails server”不需要bundle exec? Seems like it should still apply. 似乎它应该仍然适用。
The rails
command runs from the executable inside the script
folder. rails
命令从script
文件夹中的可执行文件运行。 If you remove this folder, you can see that rails
commands stop working. 如果删除此文件夹,则可以看到rails
命令停止工作。 rake
however runs differently. 但是rake
运行方式不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.