[Mongrel] Multiple rails apps with Mongrel
shurikk at gmail.com
Thu Sep 7 23:19:42 EDT 2006
I've missed parts of this conversation, but I can tell you:
1. in config/routes.rb insert line
ActionController::AbstractRequest.relative_url_root = "/app1"
2. create a symlink in app1 "public": ln -s . app1
3. start mongrel or webrick
ruby script/server OR
mongrel_rails start -p 3000
4. connect directly to the server (without proxy) and test your application
I'm 100% sure it will work
On 9/7/06, zer0halo <zerohalo at gmail.com> wrote:
> Thanks, everyone for trying to help me solve this. I tried both Alex's and
> Eoin's changes, but alas to no avail.
> After applying Eoin's addition to environment.rb, the URL
> does correctly redirect to the default controller and method:
> however when method 'items' redirects to method 'list', the output is
> (no app1)
> which sends the app into an endless loop.
> I keep getting the feeling the solution is somehow in routes.rb, but I don't
> know what. My routes.rb is very simple. The root route is:
> map.connect '', :controller => 'items'
> default route is the usual:
> map.connect ':controller/:action/:id'
> (I thought maybe changing the default route to map.connect
> '/app1/:controller/:action/:id' would work, but it gives a "recognition
> failed" error.
> "Impossible is nothing."
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
More information about the Mongrel-users