Jano Svitok
2/5/2007 7:54:00 AM
On 2/5/07, libsfan01 <mcyi2mr3@googlemail.com> wrote:
> hi all
>
> due to hosting constraints, i need to deploy a rails site within an
> existing rails site.
>
> where do i need to "cd" to, to issue the rails command to generate the
> site? i've tried the public folder but that doesn't appear to be
> working.
Hi,
I suppose you don't generate it within some folder of the main site.
These are possibilities that I can think of (note that I'm not a
railsist ;-) so there might be other options):
1. generate theme side by side, and link them via .htaccess/httpd.conf
and mod_rewrite
2. if they do not overlap, merge them into one site (i.e. put
everything in one place and fix routing so everything appears where it
should)
3. put the other site into some unimportant folder (vendor) or create
separate folder somewhere in the main app top folder. They do the
magic with .htaccess/httpd.conf.
You don't want to put the site in the 'public_html' dir cause that
would reveal your sources to public. OTOH, you need the the public dir
of your other site to be visible. So you need to use mod_rewrite,
symlinks or copying the files where they belong.
As I said, there might be other options.