Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

No netrc #7

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Example usage:

$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

$ heroku config:add [email protected]

$ heroku config:add HEROKU_TOOLBELT_API_PASSWORD=`heroku auth:token`
$ heroku config:add HEROKU_API_KEY=`heroku auth:token`
$ heroku config:unset HEROKU_HOST

$ cat .buildpacks
https://github.com/heroku/heroku-buildpack-toolbelt.git
Expand Down Expand Up @@ -58,7 +57,18 @@ Example usage:
Notes
------

Some PATH manipulation may be needed, expecially if you are using the
heroku-buildpack-ruby-minimal solely to provide a ruby execution environment
for the heroku cli gem.
WARNING: Your API token may change at any time for many reasons. If you are
getting authentication failures, try:

```
$ heroku config:set HEROKU_API_KEY=`heroku auth:token`
```

Some PATH manipulation may be needed to successfully use the toolbelt,
especially if you are using the heroku-buildpack-ruby-minimal solely to provide
a ruby execution environment for the heroku cli gem, which will conflict with
the toolbelt. Try:

```
$ heroku run 'env PATH="/app/bin" vendor/heroku-toolbelt/bin/heroku apps'
```
19 changes: 7 additions & 12 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ function error() {
exit 1
}

function indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";;
*) sed -u "$c";;
esac
}

function package_download() {
engine="$1"
version="$2"
Expand Down Expand Up @@ -61,9 +53,12 @@ fi
mv heroku-client/* .
rmdir heroku-client

echo "-----> Moving the netrc generation script into app/.profile.d"
mkdir -p $BUILD_DIR/.profile.d
cp "$BUILDPACK_DIR/bin/gen-netrc.sh" $BUILD_DIR/.profile.d/
chmod +x $BUILD_DIR/.profile.d/gen-netrc.sh
# Add heroku toolbelt to the PATH
echo "Adding heroku toolbelt to PATH"
mkdir -p "$BUILD_DIR/.profile.d"
cat > "$BUILD_DIR/.profile.d/path.sh" <<EOF
export PATH=$PATH:/app/vendor/heroku-toolbelt/bin/
EOF


echo "-----> heroku toolbelt installation done"
10 changes: 0 additions & 10 deletions bin/gen-netrc.sh

This file was deleted.