I am a RoR beginner and thought I'd give it a try by using rails to
write some 'in-house' apps...for my house. I have a webserver in my
apt. that I just run as a kind of 'intranet' and have apps on it that
help us with house-hold things.
My question is whether I can run multiple rails apps on Phusion
Passenger without having to set up different subdomains for each
one...if so, where is the document root? The top level app directory?
The public folder?
You can easily setup as many apps as u want, u can do this by
configuring your apache server with virtual hosts in you apache server
config file and add the relevent host names in your hosts config file.
I am a RoR beginner and thought I'd give it a try by using rails to
write some 'in-house' apps...for my house. I have a webserver in my
apt. that I just run as a kind of 'intranet' and have apps on it that
help us with house-hold things.
My question is whether I can run multiple rails apps on Phusion
Passenger without having to set up different subdomains for each
one...if so, where is the document root? The top level app directory?
The public folder?
You can use name based virtual hosts with Apache and Phusion Passenger. The
details are explained at the URL below. Unfortunately, the author didn't
proof his/her work by looking at the blog and the HTML isn't proper escaped or
unescaped. E.g. displays
with the CSS style 'apache' applied. But once you decipher the mix, it is
helpful. I have two home-grown Rails apps (Amethyst and TagFlow) and Nagios
(a system monitoring app) running on the same Apache server. The URLs are: