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

gregburek/heroku-buildpack-toolbelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: Heroku Toolbelt DEPRECATED

This is a Heroku buildpack that allows one to run the deprecated Heroku Toolbelt in a dyno alongside application code.

This is not a replacement for the Heroku API or various clients like v3 Ruby, v2 Ruby, node or python. Some private APIs like pgbackups do require the buildpack, so this exists.

It is meant to be used in conjunction with at least the minimal ruby as well as other buildpacks as part of a multi-buildpack.

Usage

Example usage:

$ ls -a
.buildpacks  Gemfile  Gemfile.lock  Procfile  config/  config.ru

$ 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`

$ cat .buildpacks
https://github.com/gregburek/heroku-buildpack-toolbelt.git
https://github.com/heroku/heroku-buildpack-ruby.git

$ git push heroku master
...
-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/gregburek/heroku-buildpack-toolbelt
=====> Detected Framework: heroku-toolbelt
-----> Fetching and vendoring Heroku Toolbelt into slug
-----> Moving the netrc generation script into app/.profile.d
-----> heroku toolbelt installation done
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
=====> Detected Framework: Ruby/Rack
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
...

$ heroku run 'vendor/heroku-toolbelt/bin/heroku auth:token'
Running `vendor/heroku-toolbelt/bin/heroku auth:token` attached to terminal... up, run.3706
abcdef0123456789abcdef0123456789abcdef01

$ heroku run 'vendor/heroku-toolbelt/bin/heroku pgbackups:capture SILVER -a myapp'
Running `vendor/heroku-toolbelt/bin/heroku pgbackups:capture SILVER -a myapp` attached to terminal... up, run.9532

HEROKU_POSTGRESQL_SILVER_URL  ----backup--->  b003

Capturing... done
Storing... done

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.