Getting Started with TorqueBox
Before making any changes to Twitalytics, create and check out a torquebox branch based on the jruby branch you created in Chapter 3, Deploying a Rails Application.
| $ cd ~/code/twitalytics |
| $ git checkout -b torquebox jruby |
Now you can add TorqueBox, which is distributed as both a gem and a binary file. You’ll use the gem, which you can install by replacing the Puma gem in your Gemfile with the TorqueBox gem. Add this line now and remove the puma entry:
| gem "torquebox", "4.0.0.beta2" |
Then run Bundler to install TorqueBox and update the configuration:
| $ bundle install --binstubs |
| ... |
| Installing torquebox-core 4.0.0.beta2 |
| Installing torquebox-caching 4.0.0.beta2 ... |
Get Deploying with JRuby 9k now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.