Sha256: 49c7ccb01ca0a234f8f41d68a89b7e2b5308eb517dc787a8d07c10af598dcc76

Contents?: true

Size: 1.04 KB

Versions: 60

Compression:

Stored size: 1.04 KB

Contents

#\ --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_'

use Rack::ShowExceptions
use Rack::Reloader

#use RubyApp::Rack::Duration
#use RubyApp::Rack::Memory

use RubyApp::Rack::Application, :configuration_paths  => [ File.join(RubyApp::ROOT, %w[configuration.yml]),
                                                           File.join(_APPLICATION_UPCODE_::ROOT, %w[configuration.yml])]

map '/ruby_app/resources' do
  run Rack::File.new(File.join(RubyApp::ROOT, %w[resources]))
end

map '/_APPLICATION_DOWNCODE_/resources' do
  run Rack::File.new(File.join(_APPLICATION_UPCODE_::ROOT, %w[resources]))
end

map '/favicon.ico' do
  run Rack::File.new(File.join(RubyApp::ROOT, %w[resources favicon.ico]))
end

map '/' do
  use RubyApp::Rack::Request
  use RubyApp::Rack::Response
  use RubyApp::Rack::Language
  use RubyApp::Rack::Session
  run RubyApp::Rack::Route.new
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
RubyApp-0.5.86 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.85 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.77 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.76 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.75 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.74 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.73 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.72 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.71 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.70 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.69 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.68 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.67 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.66 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.65 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.64 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.63 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.62 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.61 lib/ruby_app/templates/application/configuration.ru
RubyApp-0.5.60 lib/ruby_app/templates/application/configuration.ru