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

Commit

Permalink
passing through puma config
Browse files Browse the repository at this point in the history
Sent upstream at: rubygems#205
  • Loading branch information
JackDanger committed Dec 6, 2018
1 parent 5afdc0e commit 8b9b6aa
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/gemstash/cli/start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,20 @@ def pidfile?
@cli.options[:pidfile]
end

def puma_config
File.expand_path("../../puma.rb", __FILE__)
def args
puma_args + pidfile_args + daemonize_args
end

def args
config_args + pidfile_args + daemonize_args
def puma_args
[
'--config', puma_config,
'--workers', gemstash_env.config[:puma_workers],
'--threads', gemstash_env.config[:puma_threads],
]
end

def config_args
["--config", puma_config]
def puma_config
File.expand_path("../../puma.rb", __FILE__)
end

def daemonize_args
Expand Down

0 comments on commit 8b9b6aa

Please sign in to comment.