mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Introduce preload flag
This is nice for we that like using the CLI.
This commit is contained in:
parent
9b780bacb6
commit
94b825f56c
1 changed files with 6 additions and 2 deletions
|
@ -236,6 +236,10 @@ module Puma
|
|||
@options[:pidfile] = arg
|
||||
end
|
||||
|
||||
o.on "--preload", "Preload the app. Cluster mode only" do
|
||||
@options[:preload_app] = true
|
||||
end
|
||||
|
||||
o.on "-q", "--quiet", "Quiet down the output" do
|
||||
@options[:quiet] = true
|
||||
end
|
||||
|
@ -292,7 +296,7 @@ module Puma
|
|||
end
|
||||
end
|
||||
|
||||
def set_rack_environment
|
||||
def set_rack_environment
|
||||
# Try the user option first, then the environment variable,
|
||||
# finally default to development
|
||||
|
||||
|
@ -323,7 +327,7 @@ module Puma
|
|||
state = { "pid" => Process.pid }
|
||||
|
||||
cfg = @config.dup
|
||||
|
||||
|
||||
[ :logger, :worker_boot, :on_restart ].each { |o| cfg.options.delete o }
|
||||
|
||||
state["config"] = cfg
|
||||
|
|
Loading…
Add table
Reference in a new issue