{"id":15619856,"url":"https://github.com/nedomas/heroku-buildpack-ruby-minus-node-with-node-paths","last_synced_at":"2025-03-29T15:32:06.716Z","repository":{"id":25284557,"uuid":"28710339","full_name":"Nedomas/heroku-buildpack-ruby-minus-node-with-node-paths","owner":"Nedomas","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-02T10:33:00.000Z","size":5932,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T16:25:25.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nedomas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-02T10:32:32.000Z","updated_at":"2015-01-02T10:33:00.000Z","dependencies_parsed_at":"2022-08-24T00:20:39.579Z","dependency_job_id":null,"html_url":"https://github.com/Nedomas/heroku-buildpack-ruby-minus-node-with-node-paths","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nedomas","download_url":"https://codeload.github.com/Nedomas/heroku-buildpack-ruby-minus-node-with-node-paths/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246205407,"owners_count":20740480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T08:42:05.600Z","updated_at":"2025-03-29T15:32:06.685Z","avatar_url":"https://github.com/Nedomas.png","language":"Ruby","readme":"Heroku buildpack: Ruby\n======================\n\nThis is a [Heroku buildpack](http://devcenter.heroku.com/articles/buildpacks) for Ruby, Rack, and Rails apps. It uses [Bundler](http://gembundler.com) for dependency management.\n\nUsage\n-----\n\n### Ruby\n\nExample Usage:\n\n    $ ls\n    Gemfile Gemfile.lock\n\n    $ heroku create --stack cedar --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    ...\n    -----\u003e Heroku receiving push\n    -----\u003e Fetching custom buildpack\n    -----\u003e Ruby app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n           Running: bundle install --without development:test --path vendor/bundle --deployment\n           Fetching gem metadata from http://rubygems.org/..\n           Installing rack (1.3.5)\n           Using bundler (1.1.rc)\n           Your bundle is complete! It was installed into ./vendor/bundle\n           Cleaning up the bundler cache.\n    -----\u003e Discovering process types\n           Procfile declares types -\u003e (none)\n           Default types for Ruby  -\u003e console, rake\n\nThe buildpack will detect your app as Ruby if it has a `Gemfile` and `Gemfile.lock` files in the root directory. It will then proceed to run `bundle install` after setting up the appropriate environment for [ruby](http://ruby-lang.org) and [Bundler](http://gembundler.com).\n\n#### Run the Tests\n\nThe tests on this buildpack are written in Rspec to allow the use of\n`focused: true`. Parallelization of testing is provided by\nhttps://github.com/grosser/parallel_tests this lib spins up an arbitrary\nnumber of processes and running a different test file in each process,\nit does not parallelize tests within a test file. To run the tests: clone the repo, then `bundle install` then clone the test fixtures by running:\n\n```sh\n$ hatchet install\n```\n\nNow run the tests:\n\n```sh\n$ bundle exec parallel_rspec -n 6 spec/\n```\n\nIf you don't want to run them in parallel you can still:\n\n```sh\n$ bundle exec rake spec\n```\n\nNow go take a nap or something for a really long time.\n\n#### Bundler\n\nFor non-windows `Gemfile.lock` files, the `--deployment` flag will be used. In the case of windows, the Gemfile.lock will be deleted and Bundler will do a full resolve so native gems are handled properly. The `vendor/bundle` directory is cached between builds to allow for faster `bundle install` times. `bundle clean` is used to ensure no stale gems are stored between builds.\n\n### Rails 2\n\nExample Usage:\n\n    $ ls\n    app  config  db  doc  Gemfile  Gemfile.lock  lib  log  public  Rakefile  README  script  test  tmp  vendor\n\n    $ ls config/environment.rb\n    config/environment.rb\n\n    $ heroku create --stack cedar --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    ...\n    -----\u003e Heroku receiving push\n    -----\u003e Ruby/Rails app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n    ...\n    -----\u003e Writing config/database.yml to read from DATABASE_URL\n    -----\u003e Rails plugin injection\n           Injecting rails_log_stdout\n    -----\u003e Discovering process types\n           Procfile declares types      -\u003e (none)\n           Default types for Ruby/Rails -\u003e console, rake, web, worker\n\nThe buildpack will detect your app as a Rails 2 app if it has a `environment.rb` file in the `config`  directory.\n\n#### Rails Log STDOUT\n  A [rails_log_stdout](http://github.com/ddollar/rails_log_stdout) is installed by default so Rails' logger will log to STDOUT and picked up by Heroku's [logplex](http://github.com/heroku/logplex).\n\n#### Auto Injecting Plugins\n\nAny vendored plugin can be stopped from being installed by creating the directory it's installed to in the slug. For instance, to prevent rails_log_stdout plugin from being injected, add `vendor/plugins/rails_log_stdout/.gitkeep` to your git repo.\n\n### Rails 3\n\nExample Usage:\n\n    $ ls\n    app  config  config.ru  db  doc  Gemfile  Gemfile.lock  lib  log  Procfile  public  Rakefile  README  script  tmp  vendor\n\n    $ ls config/application.rb\n    config/application.rb\n\n    $ heroku create --stack cedar --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    -----\u003e Heroku receiving push\n    -----\u003e Ruby/Rails app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n           Running: bundle install --without development:test --path vendor/bundle --deployment\n           ...\n    -----\u003e Writing config/database.yml to read from DATABASE_URL\n    -----\u003e Preparing app for Rails asset pipeline\n           Running: rake assets:precompile\n    -----\u003e Rails plugin injection\n           Injecting rails_log_stdout\n           Injecting rails3_serve_static_assets\n    -----\u003e Discovering process types\n           Procfile declares types      -\u003e web\n           Default types for Ruby/Rails -\u003e console, rake, worker\n\nThe buildpack will detect your apps as a Rails 3 app if it has an `application.rb` file in the `config` directory.\n\n#### Assets\n\nTo enable static assets being served on the dyno, [rails3_serve_static_assets](http://github.com/pedro/rails3_serve_static_assets) is installed by default. If the [execjs gem](http://github.com/sstephenson/execjs) is detected then [node.js](http://github.com/joyent/node) will be vendored. The `assets:precompile` rake task will get run if no `public/manifest.yml` is detected.  See [this article](http://devcenter.heroku.com/articles/rails31_heroku_cedar) on how rails 3.1 works on cedar.\n\nHacking\n-------\n\nTo use this buildpack, fork it on Github.  Push up changes to your fork, then create a test app with `--buildpack \u003cyour-github-url\u003e` and push to it.\n\nTo change the vendored binaries for Bundler, [Node.js](http://github.com/joyent/node), and rails plugins, use the rake tasks provided by the `Rakefile`. You'll need an S3-enabled AWS account and a bucket to store your binaries in as well as the [vulcan](http://github.com/heroku/vulcan) gem to build the binaries on heroku.\n\nFor example, you can change the vendored version of Bundler to 1.1.rc.\n\nFirst you'll need to build a Heroku-compatible version of Node.js:\n\n    $ export AWS_ID=xxx AWS_SECRET=yyy S3_BUCKET=zzz\n    $ s3 create $S3_BUCKET\n    $ rake gem:install[bundler,1.1.rc]\n\nOpen `lib/language_pack/ruby.rb` in your editor, and change the following line:\n\n    BUNDLER_VERSION = \"1.1.rc\"\n\nOpen `lib/language_pack/base.rb` in your editor, and change the following line:\n\n    VENDOR_URL = \"https://s3.amazonaws.com/zzz\"\n\nCommit and push the changes to your buildpack to your Github fork, then push your sample app to Heroku to test.  You should see:\n\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n\nNOTE: You'll need to vendor the plugins, node, Bundler, and libyaml by running the rake tasks for the buildpack to work properly.\n\nFlow\n----\n\nHere's the basic flow of how the buildpack works:\n\nRuby (Gemfile and Gemfile.lock is detected)\n\n* runs Bundler\n* installs binaries\n  * installs node if the gem execjs is detected\n* runs `rake assets:precompile` if the rake task is detected\n\nRack (config.ru is detected)\n\n* everything from Ruby\n* sets RACK_ENV=production\n\nRails 2 (config/environment.rb is detected)\n\n* everything from Rack\n* sets RAILS_ENV=production\n* install rails 2 plugins\n  * [rails_log_stdout](http://github.com/ddollar/rails_log_stdout)\n\nRails 3 (config/application.rb is detected)\n\n* everything from Rails 2\n* install rails 3 plugins\n  * [rails3_server_static_assets](https://github.com/pedro/rails3_serve_static_assets)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnedomas%2Fheroku-buildpack-ruby-minus-node-with-node-paths/lists"}