Sha256: af7d75b745be7f1896afed71fe57c80b6c8e8b68332071e886c45e3c6d449ec0
Contents?: true
Size: 763 Bytes
Versions: 3
Compression:
Stored size: 763 Bytes
Contents
# Rackup - GetBones.com # 2009-12-11 ENV['RACK_ENV'] ||= 'production' ENV['APP_ROOT'] = ::File.expand_path(::File.join(::File.dirname(__FILE__))) $:.unshift(::File.join(ENV['APP_ROOT'], 'lib')) require 'sinatra' require 'boned/api' disable :run # disable sinatra's auto-application starting configure :production do Boned.debug = false map("/#{Boned::APIVERSION}/") { run Boned::API::Service } end configure :development do use Rack::ShowExceptions require 'boned/api/debug' require 'boned/api/redis' map("/#{Boned::APIVERSION}/") { run Boned::API::Service } map("/debug") { run Boned::API::Debug } map("/redis") { run Boned::API::RedisViewer } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boned-0.2.3 | config.ru |
boned-0.2.2 | config.ru |
boned-0.2.1 | config.ru |