0
@@ -17,25 +17,25 @@ In config.ru:
0
require 'rack/adapter/sandboxed_rails'
0
- run Rack::Adapter::Sandbox.new %{
0
- Rack::Adapter::Rails.new(:root => '/path/to/a/rails_app', :prefix => '/rails1')
0
+ map 'http://myfirstapp.com' do
0
+ run Rack::Adapter::SandboxedRails.new(:root => '/path/to/a/rails_app')
0
- run Rack::Adapter::Sandbox.new %{
0
- Rack::Adapter::Rails.new(:root => '/path/to/another/rails_app', :prefix => '/rails2')
0
+ map 'http://mysecondapp.com' do
0
+ run Rack::Adapter::SandboxedRails.new(:root => '/path/to/another/rails_app')
0
thin start -r config.ru
0
-You first Rails app will be available at /rails1 and the second one under /rails2.
0
+You first Rails app will be available at http://myfirstapp.com and the second one under http://mysecondapp.com.
0
+The Rack Sandbox is still very hackish, it's works with very bare bone Rails application,
0
+no gems, no session, no database. Some more hacking needs to be done to support a full app.
0
Ruby License, http://www.ruby-lang.org/en/LICENSE.txt
0
(C) Marc-Andre Cournoyer <macournoyer@gmail.com>
Comments
No one has commented yet.