Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Commit 8b9b6aa

Browse files
committed
passing through puma config
Sent upstream at: rubygems#205
1 parent 5afdc0e commit 8b9b6aa

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/gemstash/cli/start.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,20 @@ def pidfile?
3838
@cli.options[:pidfile]
3939
end
4040

41-
def puma_config
42-
File.expand_path("../../puma.rb", __FILE__)
41+
def args
42+
puma_args + pidfile_args + daemonize_args
4343
end
4444

45-
def args
46-
config_args + pidfile_args + daemonize_args
45+
def puma_args
46+
[
47+
'--config', puma_config,
48+
'--workers', gemstash_env.config[:puma_workers],
49+
'--threads', gemstash_env.config[:puma_threads],
50+
]
4751
end
4852

49-
def config_args
50-
["--config", puma_config]
53+
def puma_config
54+
File.expand_path("../../puma.rb", __FILE__)
5155
end
5256

5357
def daemonize_args

0 commit comments

Comments
 (0)