I''m currently in the planning stages of making a rails application that will run two or more ''sites'' on the same server, pretty much the same as each other except having different databases and some different configuration settings. (And, of course, accessed by different paths.) I thought RailsProductGenerator would be able to handle a lot of the work involved in this for me, but looking at the server file, it seems that you would have to run it once for each site. Is there a simple way to set it up to make all the sites available at once? -Morgan. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.1/135 - Release Date: 10/15/2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Morgan wrote:> I''m currently in the planning stages of making a rails application that > will run two or more ''sites'' on the same server, pretty much the same > as each other except having different databases and some different > configuration settings. (And, of course, accessed by different paths.) > > I thought RailsProductGenerator would be able to handle a lot of the > work involved in this for me, but looking at the server file, it seems > that you would have to run it once for each site. Is there a simple way > to set it up to make all the sites available at once?I''m interested in doing this as well. If you find any more information about this please let me know :) - -Jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDbd30yBTJv0gb9+IRAk24AJ9o2KzbfdTwPPTJWagfhO+LJn4G0QCeMc3O 2E9LVjQK9EycAVLWR7OXHSM=6rMM -----END PGP SIGNATURE-----
I don''t know anything about the RailsProductGenerator and I''m no server config guru, but I did this with simply creating two separate rails sites and using apache vhosts. Also, in the mod_fastcgi.conf I had lines such as these: FastCgiServer /srv/www/vhosts/app1/public/dispatch.fcgi -idle-timeout 120 -processes 2 FastCgiServer /srv/www/vhosts/app2/public/dispatch.fcgi -idle-timeout 120 -processes 2 This keeps everything separted and haven''t had any issues (so far). On 11/6/05, Jeremy Kitchen <kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Morgan wrote: > > I''m currently in the planning stages of making a rails application that > > will run two or more ''sites'' on the same server, pretty much the same > > as each other except having different databases and some different > > configuration settings. (And, of course, accessed by different paths.) > > > > I thought RailsProductGenerator would be able to handle a lot of the > > work involved in this for me, but looking at the server file, it seems > > that you would have to run it once for each site. Is there a simple way > > to set it up to make all the sites available at once? > > I''m interested in doing this as well. If you find any more information > about this please let me know :) > > - -Jeremy > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDbd30yBTJv0gb9+IRAk24AJ9o2KzbfdTwPPTJWagfhO+LJn4G0QCeMc3O > 2E9LVjQK9EycAVLWR7OXHSM> =6rMM > -----END PGP SIGNATURE----- > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Andrew Stone _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On Nov 6, 2005, at 7:09 AM, Andrew Stone wrote:> I don''t know anything about the RailsProductGenerator and I''m no > server config guru, but I did this with simply creating two > separate rails sites and using apache vhosts. Also, in the > mod_fastcgi.conf I had lines such as these: > > FastCgiServer /srv/www/vhosts/app1/public/dispatch.fcgi -idle- > timeout 120 -processes 2 > > FastCgiServer /srv/www/vhosts/app2/public/dispatch.fcgi -idle- > timeout 120 -processes 2 > > > This keeps everything separted and haven''t had any issues (so far). >Yes, this is the way I had originally intended it to work. Does that resolve the issue, Morgan? Duane Johnson (canadaduane)