https://github.com/rubinius/heroku-rbx-puma-rails-app
How to get an app running on Heroku using Rubinius and Puma
https://github.com/rubinius/heroku-rbx-puma-rails-app
Last synced: about 2 months ago
JSON representation
How to get an app running on Heroku using Rubinius and Puma
- Host: GitHub
- URL: https://github.com/rubinius/heroku-rbx-puma-rails-app
- Owner: rubinius
- Created: 2013-02-26T09:28:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-24T18:20:07.000Z (almost 12 years ago)
- Last Synced: 2025-03-26T07:36:28.624Z (2 months ago)
- Language: Ruby
- Homepage: http://heroku-rbx-puma-rails-app.herokuapp.com
- Size: 164 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to Use Rubinius and Puma on Heroku
## In Three Steps
1. Install the Puma gem in your `Gemfile`
`gem "puma", "~> 2.2.2"`
2. Tell Heroku to use Puma as your webserver in your `Procfile` (at the root of your app)
`web: bundle exec puma -p $PORT`
3. Specify Rubinius as your ruby engine in your `Gemfile`
`ruby "1.9.3", :engine => "rbx", :engine_version => "2.0.0.rc1"`
## Confirmation
When you commit and push these changes to Heroku, if all goes well, you should see something this output:
-----> Using Ruby version: ruby-1.9.3-rbx-2.0.0.rc1
-----> Installing dependencies using Bundler version 1.3.0.pre.5
Ruby version change detected. Clearing bundler cache.
Old: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
New: rubinius 2.0.0.rc1 (1.9.3 release yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]To confirm that your app is really running on Rubinius 2.0, you can use the `console`.
heroku run console
First ask what the `RUBY_ENGINE` is
RUBY_ENGINE
You should get back `rbx`
"rbx"
Next, ask what version of Rubinius is running
Rubinius.version
It should be something that starts with `rubinius 2.0.0.rc1`
"rubinius 2.0.0.rc1 (1.9.3 release yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]"
That's it! You're running Rubinius 2.0 on Heroku!