Sha256: d20f8315c11350c242ea8a2a51b581181915d09d90ba6031b6b47da8e13d538d

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

require 'better_errors'

module NYNY
  module Runner
    def run! port=9292
      use Rack::CommonLogger
      use BetterErrors::Middleware unless NYNY.env.production?
      Rack::Handler.pick(['thin', 'webrick']).run new, :Port => port
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nyny-3.2.2 lib/nyny/core-ext/runner.rb
nyny-3.2.1 lib/nyny/core-ext/runner.rb
nyny-3.2.0 lib/nyny/core-ext/runner.rb
nyny-3.1.0 lib/nyny/core-ext/runner.rb