class Shellac::Launcher

Public Class Methods

run() click to toggle source
# File lib/shellac/application.rb, line 4
def run
  puma_config = Puma::Configuration.new do |pconf|
    pconf.threads Config[:minimum_threads], Config[:maximum_threads]
    pconf.workers Config[:worker_count]
    Config[:bind].each {|b| pconf.bind b}
    pconf.app Application
  end

  Puma::Launcher.new(puma_config, events: Puma::Events.stdio).run
end