Mounting an app as '/' under Apache?
Michael Gorsuch
michael.gorsuch at gmail.com
Sat Oct 28 16:57:57 EDT 2006
Yes - I had to run the reloader against 'blog.rb' first. That still didn't
account for the issue with the reference to @mounts in the class method.
I like your proposal - I think that is VERY clear and clean.
On 10/28/06, why the lucky stiff <why at whytheluckystiff.net> wrote:
>
> On Sat, Oct 28, 2006 at 12:40:43PM -0400, Michael Gorsuch wrote:
> > Hello everyone, I have a site with a collection of camping apps. I'm
> trying
> > to force one of them, blog.rb, to run as the index ('/').
>
> [...]
>
> > require 'rubygems'
> > require 'camping/fastcgi'
> > ENV['FORCE_ROOT'] = "1"
> > Camping::Models::Base.establish_connection :adapter => 'sqlite3',
> :database
> > => File.expand_path(current + '/camping.db')
> > Camping::FastCGI.serve File.expand_path(current), Blog
>
> I believe you will need to load the blog app first in order to reference
> the
> Blog const you have there.
>
> But on further looking at this, I think I need to improve things to work
> like
> this:
>
> Camping::FastCGI.serve File.expand_path(current), :index => "/blog"
>
> With an optional {:redirect => true} options or such to indicate whether
> the app
> is to be moved to root or simply aliased there. I could use some other
> thoughts
> on this.
>
> _why
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20061028/89a7ff02/attachment.html
More information about the Camping-list
mailing list