Skip to content

Commit

Permalink
Use String representation of 'config.ru' for Lotus::Server and Shotgun
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Dec 12, 2014
1 parent e3c9250 commit b61b000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lotus/commands/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(env)

if code_reloading?
require 'shotgun'
@app = Shotgun::Loader.new(@_env.rackup)
@app = Shotgun::Loader.new(@_env.rackup.to_s)
end
end

Expand All @@ -50,7 +50,7 @@ def start
private
def _extract_options(env)
env.to_options.merge(
config: env.rackup,
config: env.rackup.to_s,
Host: env.host,
Port: env.port,
AccessLog: []
Expand Down

0 comments on commit b61b000

Please sign in to comment.