Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy multiple rails app on a single IP (Apache + Passenger)?

I want to deploy multiple rails app on a single server. If I had a domain name, I would have easily done that using subdomains as server name in virtual hosts.

My problem is that I do not have a domain name. Can I do something like

70.42.89.11/app_1 as one server name and 70.42.89.11/app_2 as another.

Or are there any other solutions?

like image 936
Jagira Avatar asked Oct 13 '10 09:10

Jagira


1 Answers

Yes. The Passenger guide calls this "Deploying to a Sub URI"

http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rack_to_sub_uri

https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-sub-uri-or-subdirectory

like image 179
Robert Speicher Avatar answered Nov 18 '22 08:11

Robert Speicher