I've got a dummy site up and working with Arrow, but I have a question....In the httpd.conf file you specify something like:
RubyAddPath /usr/local/lib/ruby/site_ruby/1.8
RubyRequire arrow
<Location /camphq>
SetHandler ruby-object
RubyHandler "Arrow::Dispatcher::instance( '/var/www/camphq/config/camphq.cfg' )"
</Location>
Where /camphq is how the url of how you want to access your site. IE: http://mysite.com/camphq . However in my Arrow config file you have something like:
applets:
defaultApplet: "/index" #Note this line
missingApplet: "/missing"
errorApplet: "/error"
pattern: "*.rb"
path:
- "/var/www/camphq/applets"
pollInterval: 5
config: {}
layout:
"/index": Index # Note this line to
You would think that if you went to http://mysite.com/camphq/index it would run the defaultApplet "/index" (which actually tells the layout "/index" to run ). But it doesn't! Instead you have to say:
applets:
defaultApplet: "/camphq/index" #Note this line
missingApplet: "/missing"
errorApplet: "/error"
pattern: "*.rb"
path:
- "/var/www/camphq/applets"
pollInterval: 5
config: {}
layout:
"/camphq/index": Index # Note this line to
in order for the url to work (http://mysite.com/camphq/index ). Is there a way around this. I would like to assume that the URL root specified in the httpd.conf file was the root of my Arrow-based "Portal" (can i call it that?) Thanks!!
Zach