Sha256: 50d94971322854f85e25359388c171b04eec4ef14448648e3129a4c1dbc7b6fe

Contents?: true

Size: 309 Bytes

Versions: 9

Compression:

Stored size: 309 Bytes

Contents

#!/usr/bin/env ruby

require_relative('../lib/polyphony/http')

app_path = ARGV.first || './config.ru'
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

Version Path
polyphony-http-0.28 bin/poly
polyphony-http-0.27 bin/poly
polyphony-http-0.26 bin/poly
polyphony-http-0.25 bin/poly
polyphony-http-0.24 bin/poly
polyphony-0.23 bin/poly
polyphony-0.22 bin/poly
polyphony-0.21 bin/poly
polyphony-0.20 bin/poly