Class: Shellac::Launcher
- Inherits:
-
Object
- Object
- Shellac::Launcher
- Defined in:
- lib/shellac/application.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# 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 |