Sha256: 080a413edb4ccf82e57c35e445491193d1fc7ee6abf17d079c39bf7f32b062ad
Contents?: true
Size: 520 Bytes
Versions: 4
Compression:
Stored size: 520 Bytes
Contents
require 'securerandom' require 'rack' require 'rack/server' require 'puma_worker_killer' PumaWorkerKiller.config do |config| config.ram = Integer(ENV['PUMA_RAM']) if ENV['PUMA_RAM'] config.frequency = Integer(ENV['PUMA_FREQUENCY']) if ENV['PUMA_FREQUENCY'] end puts "Frequency: #{ PumaWorkerKiller.frequency }" if ENV['PUMA_FREQUENCY'] class HelloWorld def response(env) [200, {}, ['Hello World']] end end class HelloWorldApp def self.call(env) HelloWorld.new.response(env) end end
Version data entries
4 entries across 4 versions & 2 rubygems