I''m not sure if ''instance'' is the right word but I need to deploy 6 copies of the same rails app, and possibly more in the future. I can set up 6 virtual hosts and copy the app to their directories, but updating the code will be a pain, especially if I need to set up more copies in future. what would be the best way to handle this? It''d be great if I could just set up 6 virtual hosts, each of which use the same rails app but a different database to store their data. Is something like this possible? thanks dylan
On Mon, 2005-02-28 at 17:04 +0000, Dylan wrote:> I''m not sure if ''instance'' is the right word but I need to deploy 6 > copies of the same rails app, and possibly more in the future. > > I can set up 6 virtual hosts and copy the app to their directories, but > updating the code will be a pain, especially if I need to set up more > copies in future. > > what would be the best way to handle this? It''d be great if I could just > set up 6 virtual hosts, each of which use the same rails app but a > different database to store their data. Is something like this possible?Sounds like the difference would be in the log and config directories. You could easily install it once, make your other virtual hosts, link to the public, lib, and app directory and copy the config and log directories. This keeps our code down to just one copy and a change made in that one place shows up everywhere. -- Steven Critchfield <critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org>
Hello, We have started a non-profit with the mission of bringing high quality news and information from around the web to the public, and are interested in finding a company/developer to develop the site. You can read more about our mission and view a mockup of our front-page design at http://www.dailys.info/. Our long-term domain name will be different - we are simply using this URL for now. You can view an RFP detailing technological functions of the project and two working mockups of parts of the site at http://dailys.info/workingmockups/?N=D. We also have several other documents including specifications for some parts of the site that we can email later if needed. We are interested in an open source solution, due in good measure to the fact that as a non-profit start-up our funds are somewhat limited. But we also like the greater flexibility that open source has and the community approach it takes. The technical advisor who is helping us choose a company to work on the site has some experience in Rails and thinks its future is promising. Besides placing emphasis on accuracy, fairness, depth and context in the stories we include, the site will be oriented towards making the world a better place by focusing on important topics and constructive themes. We aim to attract a large audience over time, and think the site will be a feather in the cap of whichever company develops it. If you are interested, please contact us at developer at dailys.info. We look forward to hearing from you. Best regards, Peter Dunn
* Steven Critchfield <critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org> [2005-02-28 12:20]:> On Mon, 2005-02-28 at 17:04 +0000, Dylan wrote: > > I''m not sure if ''instance'' is the right word but I need to deploy 6 > > copies of the same rails app, and possibly more in the future. > > > > I can set up 6 virtual hosts and copy the app to their directories, but > > updating the code will be a pain, especially if I need to set up more > > copies in future. > > > > what would be the best way to handle this? It''d be great if I could just > > set up 6 virtual hosts, each of which use the same rails app but a > > different database to store their data. Is something like this possible? > > Sounds like the difference would be in the log and config directories. > You could easily install it once, make your other virtual hosts, link to > the public, lib, and app directory and copy the config and log > directories. This keeps our code down to just one copy and a change made > in that one place shows up everywhere.Yup, hope you''re on a *NIX-variant! Or has Windows finally gotten symlinks and I didn''t notice? (very possible) -- ______________________________ toddgrimason*todd-AT-slack.net
You could use symlinks + an environment variable like the RAILS_ENV one which changes the production DB to connect to... On Mon, 28 Feb 2005 17:04:33 +0000, Dylan <b9704-Ku7NbOBBH+dBDgjK7y7TUQ@public.gmane.org> wrote:> I''m not sure if ''instance'' is the right word but I need to deploy 6 > copies of the same rails app, and possibly more in the future. > > I can set up 6 virtual hosts and copy the app to their directories, but > updating the code will be a pain, especially if I need to set up more > copies in future. > > what would be the best way to handle this? It''d be great if I could just > set up 6 virtual hosts, each of which use the same rails app but a > different database to store their data. Is something like this possible? > > thanks > dylan > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
If your app uses sessions and there are users who will hit multiple instances of the app, you''ll want to be careful about sharing the session across instances. --Scott On Tue, 1 Mar 2005 10:07:02 -0500, Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You could use symlinks + an environment variable like the RAILS_ENV > one which changes the production DB to connect to... > > > On Mon, 28 Feb 2005 17:04:33 +0000, Dylan <b9704-Ku7NbOBBH+dBDgjK7y7TUQ@public.gmane.org> wrote: > > I''m not sure if ''instance'' is the right word but I need to deploy 6 > > copies of the same rails app, and possibly more in the future. > > > > I can set up 6 virtual hosts and copy the app to their directories, but > > updating the code will be a pain, especially if I need to set up more > > copies in future. > > > > what would be the best way to handle this? It''d be great if I could just > > set up 6 virtual hosts, each of which use the same rails app but a > > different database to store their data. Is something like this possible? > > > > thanks > > dylan > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don''t suck > http://www.hieraki.org - Open source book authoring > http://blog.leetsoft.com - Technical weblog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- --Scott
Steven Critchfield wrote:> On Mon, 2005-02-28 at 17:04 +0000, Dylan wrote: > >>I''m not sure if ''instance'' is the right word but I need to deploy 6 >>copies of the same rails app, and possibly more in the future. >> >>I can set up 6 virtual hosts and copy the app to their directories, but >>updating the code will be a pain, especially if I need to set up more >>copies in future. >> >>what would be the best way to handle this? It''d be great if I could just >>set up 6 virtual hosts, each of which use the same rails app but a >>different database to store their data. Is something like this possible? > > > Sounds like the difference would be in the log and config directories. > You could easily install it once, make your other virtual hosts, link to > the public, lib, and app directory and copy the config and log > directories. This keeps our code down to just one copy and a change made > in that one place shows up everywhere.is this possible in apache under windows? I''ve been tearing my hair out trying to make this work with no luck. any pointers would be appreciated dylan