mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Pass state path through to pumactl start
. Fixes #287
This commit is contained in:
parent
50239b013f
commit
895dc9e438
1 changed files with 8 additions and 1 deletions
|
@ -205,7 +205,14 @@ module Puma
|
|||
if @options[:command] == "start"
|
||||
require 'puma/cli'
|
||||
|
||||
cli = Puma::CLI.new @argv, @stdout, @stderr
|
||||
run_args = @argv
|
||||
if path = @options[:status_path]
|
||||
run_args = ["-S", path] + run_args
|
||||
end
|
||||
|
||||
events = Puma::Events.new @stdout, @stderr
|
||||
|
||||
cli = Puma::CLI.new run_args, events
|
||||
cli.run
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue