1
0
Fork 0
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:
jc00ke 2013-07-02 00:11:46 -07:00
parent 9b780bacb6
commit 94b825f56c

View file

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