Skip to content

Instantly share code, notes, and snippets.

@tongueroo
Created May 30, 2024 14:36
Show Gist options
  • Save tongueroo/a21ba48fef3611d3d7893ddfb2675bc4 to your computer and use it in GitHub Desktop.
Save tongueroo/a21ba48fef3611d3d7893ddfb2675bc4 to your computer and use it in GitHub Desktop.
ung:~/environment/demo (main) $ bundle exec rails server
=> Booting Puma
=> Rails 5.1.5 application starting in development
=> Run `rails server -h` for more startup options
Exiting
/home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/static.rb:109:in `initialize': wrong number of arguments (given 3, expected 2) (ArgumentError)
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:35:in `new'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:35:in `build'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:99:in `block in build'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:99:in `each'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:99:in `inject'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/actionpack-5.1.5/lib/action_dispatch/middleware/stack.rb:99:in `build'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/engine.rb:508:in `block in app'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/engine.rb:504:in `synchronize'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/engine.rb:504:in `app'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/application/finisher.rb:45:in `block in <module:Finisher>'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `call'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
from /home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
from /home/ubuntu/environment/demo/config/environment.rb:5:in `<main>'
from config.ru:3:in `require_relative'
from config.ru:3:in `block in <main>'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `eval'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/builder.rb:116:in `new_from_string'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/builder.rb:105:in `load_file'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/builder.rb:66:in `parse_file'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/server.rb:249:in `app'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands/server/server_command.rb:24:in `app'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/rack-2.2.9/lib/rack/server.rb:422:in `wrapped_app'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands/server/server_command.rb:80:in `log_to_stdout'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands/server/server_command.rb:42:in `start'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands/server/server_command.rb:135:in `block in perform'
from <internal:kernel>:90:in `tap'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands/server/server_command.rb:130:in `perform'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/command/base.rb:63:in `perform'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/command.rb:44:in `invoke'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/railties-5.1.5/lib/rails/commands.rb:16:in `<main>'
from <internal:/home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/home/ubuntu/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /home/ubuntu/.rvm/gems/ruby-3.2.2/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from bin/rails:4:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment