Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danp/heroku-buildpack-ruby-minimal
A minimal Heroku buildpack for ruby
https://github.com/danp/heroku-buildpack-ruby-minimal
Last synced: 26 days ago
JSON representation
A minimal Heroku buildpack for ruby
- Host: GitHub
- URL: https://github.com/danp/heroku-buildpack-ruby-minimal
- Owner: danp
- Created: 2013-03-13T15:04:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-28T20:24:02.000Z (almost 11 years ago)
- Last Synced: 2023-04-12T16:10:57.856Z (over 1 year ago)
- Language: Shell
- Size: 415 KB
- Stars: 10
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# heroku-buildpack-ruby-minimal
This is a [Heroku Buildpack](https://devcenter.heroku.com/articles/buildpacks) for ruby. It doesn't do nearly as much as the [official ruby buildpack](https://github.com/heroku/heroku-buildpack-ruby) but it might do enough for you.
## Using
For a new app:
```bash
$ heroku create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/dpiddy/ruby.tgz
```For an existing app:
```bash
$ heroku config:set BUILDPACK_URL=https://codon-buildpacks.s3.amazonaws.com/buildpacks/dpiddy/ruby.tgz
```## What it does
1. determine which ruby to use based on [the `Gemfile`'s ruby directive](http://gembundler.com/v1.3/gemfile_ruby.html), defaulting to ruby-1.9.3
1. fetch ruby
1. set up `.profile.d/ruby.sh` with `GEM_PATH`, `LANG`, `PATH`, and `RACK_ENV` (defaults to `production`, can be overidden)
1. remove the cached bundle if the ruby version has changed
1. remove the cached bundle if the `BUILDPACK_REVISION` has changed
1. `bundle install`, using the cached bundle (inside the [`$CACHE_DIR`](https://devcenter.heroku.com/articles/buildpack-api#caching)) if available
1. remove any docs, cached `.gem` files, and [`.git` directories](https://github.com/heroku/heroku-buildpack-ruby/issues/76) to save spaceIt supports the same ruby versions as the official ruby buildpack, except for jruby for now. You can see a list [here](https://devcenter.heroku.com/articles/ruby-support#ruby-versions).
## What it does not do
* binstubs: you must `bundle exec ...` to use the bundle, additionally your app's `bin/` 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`, and `console`
* 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 up `database.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`