This is a Heroku Buildpack for ruby. It doesn't do nearly as much as the official ruby buildpack but it might do enough for you.
For a new app:
$ heroku create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/dpiddy/ruby.tgz
For an existing app:
$ heroku config:set BUILDPACK_URL=https://codon-buildpacks.s3.amazonaws.com/buildpacks/dpiddy/ruby.tgz
- determine which ruby to use based on the
Gemfile
's ruby directive, defaulting to ruby-1.9.3 - fetch ruby
- set up
.profile.d/ruby.sh
withGEM_PATH
,LANG
,PATH
, andRACK_ENV
(defaults toproduction
, can be overidden) - remove the cached bundle if the ruby version has changed
- remove the cached bundle if the
BUILDPACK_REVISION
has changed bundle install
, using the cached bundle (inside the$CACHE_DIR
) if available- remove any docs, cached
.gem
files, and.git
directories to save space
It supports the same ruby versions as the official ruby buildpack, except for jruby for now. You can see a list here.
- binstubs: you must
bundle exec ...
to use the bundle, additionally your app'sbin/
directory is not in$PATH
- add default addons: the official ruby buildpack will add a database if you have
pg
in your bundle - specify default processes types: the official ruby buildpack will set defaults for
web
,rake
, andconsole
- rails assets stuff: the official ruby buildpack will install node if necessary and try to run
rake assets:precompile
- rails plugins: the official ruby buildpack will install plugins for logging, static asset serving, etc.
database.yml
: the official ruby buildpack will set updatabase.yml
for you, reading from$DATABASE_URL
- anything related to syck/psych
- jruby (yet): it doesn't install a JVM if you specify jruby in your
Gemfile