Deploying rails application with tomcat: URL

hi,

I have built a rails application with jruby. Since I have no experience
with deploying a rails application in a production environment, I have
spent some time doing a manual deployment on a linux server with tomcat6
as
application server.

In essence, I have made a war file of the rails application with help of
the warbler gem and deployed that on the linux server.
I managed to get it up and running, but not yet exactly as I need it to
be.

I have still some configuration issues. I hope you can help me or point
me
to the right place, since it may be a tomcat question. But I assume
there
must be some rails/tomcat expertise among the members of this group…

The point is, the URL in the development server is
localhost:3000/invoices
(using rails server)
The URL in the tomcat production environment is
localhost:8080/rails/invoices

I can’t seem to figure out how I can change the port and the document
root
(/invoices instead of /rails/invoices) in tomcat.

Any ideas/pointers?

thanks in advance!

ruud

I can’t seem to figure out how I can change the port and the document root
(/invoices instead of /rails/invoices) in tomcat.

Changing the port number can be done in the Connector element in
server.xml

By changing the name of rails.war (generated by warbler) into ROOT.war,
the
rails component of the URL will disappear.