Sha256: 69d4edd07bf270f9c0e6148df1d4d91a135058685bf0fb5decf5c94314718018
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. # This is a Rack application that is booted in a background # thread and listens on port 8101. # require 'rack/handler/puma' require 'appoptics_apm/inst/rack' AppOpticsAPM.logger.info "[appoptics_apm/info] Starting background utility rack app on localhost:8101." Thread.new do app = Rack::Builder.new { use AppOpticsAPM::Rack map "/" do run Proc.new { [200, {"Content-Type" => "text/html"}, ['Hello AppOpticsAPM!']] } end map "/redirectme" do run Proc.new { [301, {"Location" => "/", "Content-Type" => "text/html"}, ['']] } end } Rack::Handler::Puma.run(app, {:Host => '127.0.0.1', :Port => 8101}) end # Allow Thin to boot. sleep(2)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.0.3 | test/servers/rackapp_8101.rb |
appoptics_apm-4.0.2 | test/servers/rackapp_8101.rb |
appoptics_apm-4.0.1-x86_64-linux | test/servers/rackapp_8101.rb |