[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1146
  • Last Modified:

Configuring Apache tomcat for RoR

Hi experts,

I am planning to develop Ruby on Rails project and I need to use tomcat since we are running a few web apps on linux box by using tomcat. (However, development environment will be windows.) I know there is instantRails that comes with apache server, but for this reason, I need to configure existing tomcat server to suit my need. I found a few sites, but they werent much in detail. Has anyone had this experience?

Thx,
0
dkim18
Asked:
dkim18
  • 2
2 Solutions
 
R7AFCommented:
If you have Apache running, you can set up a proxy to Tomcat (with mod_proxy). Using some regular expressions you can define what traffic is handled by Tomcat.
0
 
R7AFCommented:
And to be clear, I mean Apache HTTPD, running in front of Jakarta Tomcat and RoR.
0
 
NetzpiratCommented:
I would develop with Netbeans IDE using JRuby as interpreter: http://www.netbeans.org/features/ruby/index.html 

While development it is sufficient to install the mongrel gem and choose it as server, this is fast enough.

In production set up mod_proxy_balancer or mod_jk to connect to tomcat, I prefer mod_proxy_balancer: http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html

To pack your Ruby on Rails application as a WAR file deployable on Tomcat, just use warbler: http://wiki.jruby.org/wiki/Warbler
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now