gregburek / heroku-buildpack-toolbelt

DEPRECATED use https://github.com/heroku/heroku-buildpack-cli
MIT License
10 stars 28 forks source link

Set dyno $PATH to include the heroku binary #3

Closed brianfoshee closed 10 years ago

brianfoshee commented 10 years ago

Adds a script into .profile.d which adds /app/vendor/heroku-toolbelt/bin to $PATH. Updates the README to reflect this change.

There may have been a specific reason this wasn't included initially but I found it helpful in my own use.

gregburek commented 10 years ago

It wasn't included because, unfortunately, some applications also have the heroku-api or heroku gems installed, which has name conflicts and renders the toolbelt un-usable.

Instead of adding to the default PATH, I am now recommending using env PATH='/app/bin' /app/vendor/heroku-toolbelt/bin/heroku to make absolutely sure that you are using the correct stuff.

Thanks for the PR, but I'm going to have to make it harder to shoot yourself in the foot, instead of easier to use.