Learn repo and bin executables

I was looking over the learn repo and noticed that there is a bin directory which contains a large number of common executables (e.g., foreman, bourbon, bundle, haml, rspec, etc).

What’s the purpose of this? I’m guessing that it’s done so you can execute more stuff live from Heroku…?

I think bin directory is automatically created for you in rails 4 and has nothing to do with heroku.

Your app's executables now live in the bin/ directory. Run rake rails:update:bin to get bin/bundle, bin/rails, and bin/rake.

These are binstubs.

See: http://mislav.uniqpath.com/2013/01/understanding-binstubs/