In order to keep my memory footprint to a minimum, I would like to know if it's possible to serve more than one application on WebFaction from a single Passenger instance. I just need to create an additional server entry, but I can't find a way to manually proxy it. It seems like it'd be a waste if I created more than one Passenger/Rails "application" if I already have nginx up and running with the first one. Is this possible? asked 11 Mar '11, 07:51 jbrowning |
Using multiple Rails applications suggests "smart-lvl2" spawning method (see this), which takes much more memory than the "conservative" spawning we are using by default. In general, you should just stick with the one-app-per server scheme for Rails applications. answered 11 Mar '11, 08:11 tie |
Just found the answer to my own question: Create a "Custom Application" in the WebFaction control panel which will assign a port number. Then, modify nginx.conf to add an additional server directive like so:
answered 11 Mar '11, 08:26 jbrowning You don't need to use multiple ports - you should be able to just use the domain name for the second site in the
Then just assign your passenger app to whatever site in the control panel.
(11 Mar '11, 10:07)
seanf
|