Jump to content

The ultimate community for Ruby on Rails developers.


Photo

What's the difference between rake routes and bundle exec rake routes ?

rake bundle routes

  • Please log in to reply
1 reply to this topic

#1 arup

arup

    Passenger

  • Members
  • 4 posts

Posted 25 April 2014 - 03:28 PM

What's the difference between rake routes and bundle exec rake routes ? When to use which one ? When I tried these in my console, I get the same result.

 



#2 Ohm

Ohm

    Driver

  • Moderators
  • 493 posts
  • LocationCopenhagen

Posted 27 April 2014 - 05:59 AM

Running

rake routes

will execute the system wide rake command, whilst running 

bundle exec rake routes

runs the rake version defined in the Gemfile.


Blog: http://ohm.sh | Twitter: @madsohm | Work: Lokalebasen.dk






Also tagged with one or more of these keywords: rake, bundle, routes

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users