Sha256: d4b7d760b030f87c9e69d0136876d0bdba26bb5cf77324d142c5201ff8417dcd

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

# Copyright (c) 2015 AppNeta, Inc.
# All rights reserved.

require 'rack/handler/puma'
require 'traceview/inst/rack'

TraceView.logger.info "[oboe/info] Starting background utility rack app on localhost:8101."

Thread.new do
  app = Rack::Builder.new {
    use TraceView::Rack
    run Proc.new { |env|
      [200, {"Content-Type" => "text/html"}, ['Hello TraceView!']]
    }
  }

  Rack::Handler::Puma.run(app, {:Host => '127.0.0.1', :Port => 8101})
end

# Allow Thin to boot.
sleep(2)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
traceview-3.0.2-java test/servers/rackapp_8101.rb
traceview-3.0.2 test/servers/rackapp_8101.rb
traceview-3.0.1-java test/servers/rackapp_8101.rb
traceview-3.0.1 test/servers/rackapp_8101.rb
traceview-3.0.0-java test/servers/rackapp_8101.rb
traceview-3.0.0 test/servers/rackapp_8101.rb