Skip to content

Commit

Permalink
config.ru: setup application environment with Bundler
Browse files Browse the repository at this point in the history
Commit "manage load path with Bundler" introduced Bundler as a runtime
dependency so that SequenceServer doesn't have to worry about managing
`LOAD_PATH` itself.  However, until now SequenceServer leveraged Bundler
at only one of the possible 'entry points' to the application:
`bin/sequenceserver` (for running SequenceServer standalone).

This commit employs Bundler to setup the application environment in `config.ru`
which is the entry point for Rack adapters.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
  • Loading branch information
yeban committed Feb 12, 2012
1 parent 8eec323 commit 41fae46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ensure 'lib/' is in the load path
require File.join(File.dirname(__FILE__), 'lib', 'sequenceserver')
require 'rubygems'
require 'bundler/setup'
require 'sequenceserver'

SequenceServer::App.init
run SequenceServer::App

0 comments on commit 41fae46

Please sign in to comment.