#\ --port 8008 --pid ./rack.pid $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[lib])) require 'rubygems' require 'bundler/setup' require 'rack' require 'ruby_app' require 'ruby_app/rack' require '_APPLICATION_DOWNCODE_' RubyApp::Application.root = '/' use Rack::ShowExceptions use Rack::Reloader #use RubyApp::Rack::Duration, :interval => 1000 #use RubyApp::Rack::Memory, :interval => 1000 use RubyApp::Rack::Application, :configuration_paths => [ File.join(RubyApp::ROOT, %w[configuration.yml]), File.join(_APPLICATION_UPCODE_::ROOT, %w[configuration.yml])] map '#{RubyApp::Application.root_or_nil}/ruby_app/resources' do run Rack::File.new(File.join(RubyApp::ROOT, %w[resources])) end map '#{RubyApp::Application.root_or_nil}/_APPLICATION_DOWNCODE_/resources' do run Rack::File.new(File.join(_APPLICATION_UPCODE_::ROOT, %w[resources])) end map '#{RubyApp::Application.root_or_nil}/favicon.ico' do run Rack::File.new(File.join(RubyApp::ROOT, %w[resources favicon.ico])) end map '#{RubyApp::Application.root_or_nil}/' do use RubyApp::Rack::Request use RubyApp::Rack::Response use RubyApp::Rack::Language use RubyApp::Rack::Session run RubyApp::Rack::Route.new end