Using the full Glassfish applicaiton server to host many Rails applications at the same time is overkill and a waste of resources. Someone trying to get many applications to run at the same time with just one server are really better served using a lightweight solution like Jetty or maybe even Tomcat (but I woudn't recommend using the later).
Look that we're not talking about hosting just one application (which was Janna's problem at the beginning and to which I said that using the Glassfish gem would do it nicely) but hosting many applications at the same time. - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Mon, Jun 8, 2009 at 3:24 PM, Vivek Pandey<[email protected]> wrote: > Huh! What is overkill with GlassFish? With glassfish v3 server, you can > deploy your Rails application without any packaging. Just to run your Rails > app on a Java server should not ask you to package it as WAR file. > > Get glassfish v3 preview from here: > http://download.java.net/glassfish/v3-preview/release/glassfish-v3-preview.zip > > and try it it is fast, reliable and suports deployment of Rails applications > developed on JRuby without any need to do any additional > packaging/configuration etc. > > -vivek. > 2009/6/7 Maurício Linhares <[email protected]> >> >> Don't use the glassfish app server for that, it's overkill, use a >> lightweight solution like jetty -> http://jetty.mortbay.com/ >> >> Download the binary, generate a war file for your project using >> warbler and then copy the .war file to the "your jetty install >> folder"/webapps. Start jetty and the application should be available >> at "http://localhost:8080/war_file_name". >> >> - >> Maurício Linhares >> http://alinhavado.wordpress.com/ (pt-br) | >> http://codeshooter.wordpress.com/ (en) >> >> >> >> On Sun, Jun 7, 2009 at 7:16 PM, Vivek Pandey<[email protected]> >> wrote: >> > To host multiple applications, on the same server, you should be using >> > the >> > glassfish application server (not glassfish gem). >> > >> > So , let say you have a running glassfish v3 server and lets say you >> > have >> > two apps in directories >> > >> > ~/apps1 >> > ~/apps2 >> > >> > You would deploy them as: >> > >> > >> > asadmin deploy ~/apps1 >> > asadmin deploy ~/apps2 >> > >> > Then you can access these apps at, http://localhost:80/apps1/ and >> > http://localhost:80/apps2/ >> > >> > You also have option to package the Rails app as WAR file and deploy on >> > GlassFish server. See warbler doc, >> > http://caldersphere.rubyforge.org/warbler/. >> > >> > -vivek. >> > >> > >> > On Sun, Jun 7, 2009 at 11:30 AM, JannaB <[email protected]> >> > wrote: >> >> >> >> If I am using only Glassfish, and deploying to say, port 80 ....how >> >> can I handle multiple sites (multiple rails root dirs) on the same >> >> machine? -JannaB >> >> >> >> On Jun 5, 1:12 pm, Vivek Pandey <[email protected]> wrote: >> >> > > Vivek, you might want to create a screencast on how to deploy a >> >> > > Rails >> >> > > application >> >> > > using JRuby and Glassfish. This will be helpful to others that >> >> > > want >> >> > > to use >> >> > > JRuby >> >> > > as well as disprove some of the negative myths attached to it. >> >> > >> >> > There are several articles/blogs/wikis entries that describe running >> >> > Rails >> >> > on GlassFish server as well as glassfish gem. >> >> > >> >> > To get started see Charles Nutter blog on "Easy deployment with >> >> > Glassfish >> >> > gem" >> >> > >> >> > at:http://blog.headius.com/2009/04/apache-jruby-rails-glassfish-easy.html >> >> > >> >> > I should have a new screen cast on Deployment of Rails/Merb/Sinatra >> >> > on >> >> > GlassFish gem soon. >> >> > >> >> > -vivek. >> >> > >> >> > >> >> > >> >> > > -Conrad >> >> >> > >> > >> > > >> > >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

