On Sep 18, 9:36 pm, Sam Ramsden <[EMAIL PROTECTED]> wrote: > How do I deploy an application to webrick that can then be found under a > specified application context such as localhost:3000/myapp rather than > the default localhost:3000
Add it into config/routes.rb: map.connect 'myapp/:controller/:action/:id' map.connect 'myapp/:controller/:action/:id.:format' For mapped resources, use the namespace. Here's the example in my routes.rb: # Sample resource route within a namespace: # map.namespace :admin do |admin| # # Directs /admin/products/* to Admin::ProductsController (app/ controllers/admin/products_controller.rb) # admin.resources :products # end This probably isn't the "right" way. Another option would be to use apache to proxy the requests, either proxying and reverse proxying / myapp to / to webbrick, or proxying and reverse proxying / to /myapp for tomcat. Kevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

