What is the difference between “rails s” and “bundle exec rails s”?

后端 未结 3 1467
小鲜肉
小鲜肉 2020-12-28 13:56

What is the difference between rails s and bundle exec rails s? People seem to say that bundle exec rails s is better, but why? Meanwh

3条回答
  •  独厮守ぢ
    2020-12-28 14:10

    bundle exec ensures you're triggering commands from gems in your Gemfile.

    may not be that useful for rails command but is definitely needed for rake for instance.

提交回复
热议问题