shotgun
shotgun copied to clipboard
Ruby 3.0.0 -- every webserver seems to error with "wrong number of arguments (given 2, expected 1) (ArgumentError)"
On a fresh app, it looks like shotgun does not like something (running ruby 3.0 >)
getting the following error with thin
$ shotgun --server=thin --port=6000 config.ru
== Shotgun/Thin on http://127.0.0.1:6000/
/Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/rack-2.2.3/lib/rack/handler/thin.rb:11:in `run': wrong number of arguments (given 2, expected 1) (ArgumentError)
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/shotgun-0.9.2/bin/shotgun:156:in `<top (required)>'
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `load'
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `<main>'
getting the same with puma
$ shotgun --server=puma --port=6000 config.ru
== Shotgun/Puma on http://127.0.0.1:6000/
/Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/puma-5.6.2/lib/rack/handler/puma.rb:63:in `run': wrong number of arguments (given 2, expected 1) (ArgumentError)
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/gems/shotgun-0.9.2/bin/shotgun:156:in `<top (required)>'
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `load'
from /Users/aronlilland/.rvm/gems/ruby-3.0.0/bin/shotgun:23:in `<main>'
https://github.com/delonnewman/shotgun/commit/762eae9e4eac5babdc4e3e0cea1beeeb427638ea solved it for me.
Same error with ruby 3.2.1