Hello, I have developed 2-3 sample ruby application... and my server name is like http://www.mydomain.com Now when I run one of my the ruby application say "first_app", then I have to use http://www.mydomain.com:3000/ And for the 2nd application I have shutdown the service for first one and then have to start service for 2nd app. And have to use same url http://www.mydomain.com:3000/ Any one can help me what should I do if I want to run the url like http://www.mydomain.com/first_app http://www.mydomain.com/second_app Please help me.. I really need this asap... Thanks in Advance Regards Zangs Dev --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You can always assign the port to use... :3000 is just the default. ruby script/server --port=3000 for the first app ruby script/server --port=3001 for the next etc, etc -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 1, 7:27 am, Zangs Dev <zangs....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Any one can help me what should I do if I want to run the url likehttp://www.mydomain.com/first_app > http://www.mydomain.com/second_appYou need to do virtual hosting for this. I suggest you look into setting up Nginx (http://wiki.codemongers.com/Main) with some mongrel clusters in the back. Google has a ton of how-tos. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also, have a look at Rack, its a http hub for any app (rails or not) On Jul 1, 1:18 pm, Matt Darby <m...-0eUD8CxtpZOb3c84sXp8cg@public.gmane.org> wrote:> On Jul 1, 7:27 am, Zangs Dev <zangs....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Any one can help me what should I do if I want to run the url likehttp://www.mydomain.com/first_app > >http://www.mydomain.com/second_app > > You need to do virtual hosting for this. I suggest you look into > setting up Nginx (http://wiki.codemongers.com/Main) with some mongrel > clusters in the back. > Google has a ton of how-tos.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---