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/
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/
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/
is your application written in Ruby ON RAILS? This question is
important because
there are many frameworks for this and the solution to your problem
depends on the framwork used.
If it is rails indeed, you might want to check Rails-specific forum
(google for rails-talk)
There are people with specific knowledge that can help you better.
If it is rails: for start, edit your environment.rb so that you use
different ports for your apps. 3000 for the first,
3001 for the second, etc. To use /first_app, etc. you need to have
another server proxying the requests to your apps.
There are a lot of tutorials out there. GIYF, keywords: rails multiple
apps, more keywords: mongrel, reverse proxy, load balancer, ngnix,
lighttpd
To use /first_app, etc. you need to have
another server proxying the requests to your apps.
There are a lot of tutorials out there. GIYF[1], keywords: rails multiple
apps, more keywords: mongrel, reverse proxy, load balancer, ngnix,
lighttpd
The thing is not easy to do, and depends on lots of other things -
your webserver, how do you run your rails apps,
etc. so the best way is to go through the docs on rails site, and
google some tutorials (there are plenty of them),
and if that doesn’t help, try asking on the rails forum. As I said,
there are more knowledgable people.
I don’t do much with rails, so I can only show you where to look. They
will know first-hand (just don’t forget to do
your homework before you ask!)
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/
is your application written in Ruby ON RAILS? This question is
important because
there are many frameworks for this and the solution to your problem
depends on the framwork used.
If it is rails indeed, you might want to check Rails-specific forum
(google for rails-talk)
There are people with specific knowledge that can help you better.
If it is rails: for start, edit your environment.rb so that you use
different ports for your apps. 3000 for the first,
3001 for the second, etc. To use /first_app, etc. you need to have
another server proxying the requests to your apps.
There are a lot of tutorials out there. GIYF, keywords: rails multiple
apps, more keywords: mongrel, reverse proxy, load balancer, ngnix,
lighttpd
The thing is not easy to do, and depends on lots of other things -
your webserver, how do you run your rails apps,
etc. so the best way is to go through the docs on rails site, and
google some tutorials (there are plenty of them),
and if that doesn’t help, try asking on the rails forum. As I said,
there are more knowledgable people.
I don’t do much with rails, so I can only show you where to look. They
will know first-hand (just don’t forget to do
your homework before you ask!)
It’s the nature of URLs, and the nature of browsers.
That’s one of many reasons why in rails deployment, one often
uses a proxy web server that forwards URL’s on 80/443 to the
actual rails web servers.
e.g. in my applications I’ve set up
Apache with proxy-balancer. Apache takes the request, load balances
it out to one of my rails servers which are running on a range of
ports on a set of server systems.
This provides scalability and also the URL re-writing you’re after,it
can be tricky to set up but a bit of googling should point you at some
recipes for doing it.