Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: renew Puma desc & default #1008

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/mihari/commands/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class << self
def included(thor)
thor.class_eval do
desc "web", "Start the web app"
method_option :port, type: :numeric, default: 9292, desc: "Hostname to listen on"
method_option :host, type: :string, default: "localhost", desc: "Port to listen on"
method_option :port, type: :numeric, default: 9292, desc: "Port to listen on"
method_option :host, type: :string, default: "localhost", desc: "Hostname to listen on"
method_option :threads, type: :string, default: "0:5", desc: "min:max threads to use"
method_option :verbose, type: :boolean, default: true, desc: "Report each request"
method_option :verbose, type: :boolean, default: false, desc: "Don't report each request"
method_option :worker_timeout, type: :numeric, default: 60, desc: "Worker timeout value (in seconds)"
method_option :open, type: :boolean, default: true, desc: "Whether to open the app in browser or not"
method_option :env, type: :string, default: "production", desc: "Environment"
Expand Down