Sha256: 40fb813d85bf24359a39df6dd84ad55d55fd51b4eeca58fd601a370773d11d1e
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("/bone/#{Boned::APIVERSION}/") { run Boned::API::Service } end configure :development do use Rack::ShowExceptions require 'boned/api/debug' require 'boned/api/redis' map("/bone/#{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.6 | config.ru |
boned-0.2.5 | config.ru |
boned-0.2.4 | config.ru |