example/async_sinatra/config.ru in em-rack-mongrel2-0.1.0 vs example/async_sinatra/config.ru in em-rack-mongrel2-0.2.0
- old
+ new
@@ -1,8 +1,7 @@
-$: << File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
-$:.unshift(File.expand_path('.')) # Ruby 1.9 doesn't have . in the load path...
+$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
+$LOAD_PATH.unshift File.expand_path('.') # Ruby 1.9 doesn't have . in the load path...
require 'rack/handler/mongrel2'
require 'app'
-Rack::Handler::Mongrel2.run AsyncExample, :uuid => 'sinatra', :block => true
-exit(0)
+run AsyncExample