Porting to JRuby
Before deploying any existing MRI-based Rails application on JRuby, you must make a few essential changes to its dependencies. To ensure that you keep track of your changes, initialize a Git repository and create a branch with the following commands:
| $ cd ~/code/twitalytics |
| $ git init |
| $ git add -A |
| $ git commit -m "initial commit" |
| $ git checkout -b jruby |
| Switched to a new branch 'jruby' |
In the past, preparing an app for JRuby required a number of library and code changes because many gems and commands such as Kerenel#exec couldn’t be used reliably. But today, JRuby 9k uses native operations for most I/O and process APIs. This makes it the only POSIX-friendly ...
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.