Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
let's use expand_path instead of assuming current directory
This way you can also pass a full path to the rackup file.
  • Loading branch information
rtomayko committed Feb 24, 2011
1 parent 64b85d1 commit d544d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shotgun/loader.rb
Expand Up @@ -111,7 +111,7 @@ def inner_app
config = File.read(rackup_file) config = File.read(rackup_file)
eval "Rack::Builder.new {( #{config}\n )}.to_app", nil, rackup_file eval "Rack::Builder.new {( #{config}\n )}.to_app", nil, rackup_file
else else
require "./#{rackup_file}" require File.expand_path(rackup_file)
if defined? Sinatra::Application if defined? Sinatra::Application
Sinatra::Application.set :reload, false Sinatra::Application.set :reload, false
Sinatra::Application.set :logging, false Sinatra::Application.set :logging, false
Expand Down

0 comments on commit d544d3a

Please sign in to comment.