Sha256: c7ae06337aea52dae3b2a4bbbdf320781cd70b1da9c34858d819a5b6a2f56f06
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony/http' require 'localhost/authority' app_path = ARGV.first || File.expand_path('./config.ru', __dir__) app = Polyphony::HTTP::Rack.load(app_path) authority = Localhost::Authority.fetch opts = { reuse_addr: true, dont_linger: true, secure_context: authority.server_context } 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_https.rb |
polyphony-0.17 | examples/http/rack_server_https.rb |
polyphony-0.16 | examples/http/rack_server_https.rb |