SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 61 | Next

Ola Bini

"Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java"


The front page randomizes new, useful features of Facets each day, so just visit the home page
every day and you??™ll learn to use the full set of Facets sooner or later.
Mongrel
The Mongrel web server is good to have installed, and it??™s easy to get it on JRuby. When installing
Mongrel on the regular Ruby distribution, you need to compile it during the installation process,
but when running on JRuby everything will work just as a regular Gem installation. Run this:
jruby -S gem install -y mongrel
You get a list with lots of versions of Mongrel. You should choose the latest version, which
has ???jruby??? or ???java??? within parentheses after the version.
Mongrel JCluster
Using Mongrel is incredibly nice, but when you want to deploy ten Mongrels, it soon gets
inconvenient. That??™s where the mongrel_jcluster plugin is interesting; it allows you to run
several Mongrel processes inside the same Java Virtual Machine (JVM) and control all of them
with the same command. I??™ll go further into mongrel_jcluster in Chapter 11. You can install it
by running this:
jruby -S gem install -y mongrel_jcluster
Setting Up a Database
You can choose any database you like to run JRuby on Rails applications with, but in practice
you get some benefits from using the more mainstream ones. In this book I??™ll be exclusively
using MySQL, except for Chapter 5 where we??™ll take a brief look at other databases. This chapter
will only introduce you to what??™s needed to get a MySQL server up and running.


Pages:
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73