Sha256: e3b99134d045ab43158b9366dfd3d5ccbbb471026fad3b4e130ddaf94fb16599
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony/http' app_path = ARGV.first || File.expand_path('./config.ru', __dir__) app = Polyphony::HTTP::Rack.load(app_path) opts = { reuse_addr: true, dont_linger: true } puts "listening on port 1234" puts "pid: #{Process.pid}" Polyphony::HTTP::Server.serve('0.0.0.0', 1234, opts, &app)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.19 | examples/http/rack_server.rb |
polyphony-0.17 | examples/http/rack_server.rb |
polyphony-0.16 | examples/http/rack_server.rb |