Sha256: c47c8b9f148002940c7776a163da6df76d7a57b44e2981ab562d7be6c55b1a57
Contents?: true
Size: 479 Bytes
Versions: 9
Compression:
Stored size: 479 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
9 entries across 9 versions & 2 rubygems