Skip to content

Commit

Permalink
Fixed a bug where the port was not correctly passed to Sinatra.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed Jun 6, 2009
1 parent b991c61 commit 0e572b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/queue_stick/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ def initialize_workers!(worker_klass)
end

def start_web_server!
@io.puts "Starting a web server on port #{@options.port}..."

runner = self
port = @options.port
@sinatra_app = Sinatra.new(QueueStick::WebServer) do
set :port, port
set :queue_runner, runner
Expand Down

0 comments on commit 0e572b2

Please sign in to comment.