Skip to content

Commit

Permalink
Adding basic config.ru.
Browse files Browse the repository at this point in the history
This does not read from config file, nor read from ARGV. Instead values are
taken from the environment vars OPENS3_PATH and OPENS3_TOKEN. Really, this is
only useful to me with testing the massive code changes
  • Loading branch information
squeeks committed Apr 25, 2012
1 parent 9ec69fa commit 3df174e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config.ru
@@ -0,0 +1,12 @@
require 'rack'
require 'digest'
require File.expand_path('../lib/opens3', __FILE__)

path = ENV['OPENS3_PATH'] || File.dirname(__FILE__)
token = ENV['OPENS3_TOKEN'] || Digest::SHA512.hexdigest('OpenS3')

use Rack::Lint

run OpenS3.app(path, token)


0 comments on commit 3df174e

Please sign in to comment.