A heroku buildpack for changing the repository urls as part of the application build.
It's meant to be used with heroku-buildpack-multi,
before other buildpacks which require the urls to be replaced, like installing private
pip modules from
Can be used for any dependency manager, but defaults to
Environment variabes with defaults:
DEPENDENCY_FILES="requirements.txt" ORIGINAL_REPO_URL="ssh:\/\/firstname.lastname@example.org\/" REPLACEMENT_REPO_URL="https:\/\/$GITHUB_OAUTH_KEY:email@example.com\/" # Requires GITHUB_OAUTH_KEY to be specified
Note, the last two must be escaped for use in
Upload the original and replacement urls to heroku.
$ heroku config:set YOUR_OAUTH_KEY="INSERTYOUROAUTHKEYHERE"
Use the Heroku Toolbelt to
add this buildpack.
--index to make sure the buildpack runs before any others which might need
the replacements to be setup:
$ heroku buildpacks:add --index 1 https://github.com/feedbackfruits/change-private-dependency-remotes-buildpack.git
Copy the snippet above into CLI.