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