1
0
Fork 0
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:
Evan Phoenix 2013-07-05 22:02:43 -07:00
parent 50239b013f
commit 895dc9e438

View file

@ -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