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 <mistressja...@hotmail.com> 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 <vivek.pan...@gmail.com> 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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to