Adam Harte
Adam Harte

Reputation: 10530

Can a Rails app launch a rack app?

If I have a Ruby on Rails application running on my Apache shared server (with Mongrel), can I get it to launch/run another total separate Rack application?

Then could I possibly build a Rails app that manages other rails/rack apps? So it could tell what apps are running and start/stop them when I want. Or is each app trapped in it's own "sandbox"?

Upvotes: 1

Views: 370

Answers (1)

Kevin Sylvestre
Kevin Sylvestre

Reputation: 38092

In Rails 3 you can setup the router to pass any Rack application to the matched route. See: Action Dispatch.

Upvotes: 3

Related Questions