Skip to content

Commit

Permalink
Manual rack.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jul 24, 2011
1 parent 52ebb8f commit 92d6186
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,4 +5,5 @@ doc/
.yardoc
*.gem
/Gemfile.lock
/manual/Gemfile.lock

2 changes: 2 additions & 0 deletions manual/Gemfile
@@ -0,0 +1,2 @@
source :rubygems
gem 'proscribe', '~> 0.0.1'
24 changes: 3 additions & 21 deletions manual/config.ru
@@ -1,26 +1,8 @@
# This file exists to make this project Rack-compatible.
# You may delete it if you're not concerned about this.

require 'rubygems' unless defined?(::Gem)

# Use Bundler if possible.
begin
require 'bundler'
Bundler.setup
rescue LoadError
gem 'proton', '0.3.2'
end

# Optional: use the 'rack-cache' gem for cacheing.
if ENV['RACK_ENV'] == 'production'
begin
require 'rack/cache'
use Rack::Cache
rescue LoadError
end
rescue LoadError => e
end

# Load Proton.
require 'proton/server'
Proton::Project.new File.dirname(__FILE__)
run Proton::Server
require 'proscribe'
run ProScribe.rack_app

0 comments on commit 92d6186

Please sign in to comment.