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
"undefined method on_booted
for nil:NilClass" on "pumactl start"
#3356
Comments
One-liner to reproduce:
I guess #2709 never tested with Just to be clear, the hook works using
|
Looks like Line 130 in 2314d7a
as a61b078 added that in several places However, wouldn't it be better to make puma/lib/puma/configuration.rb Lines 127 to 173 in 2314d7a
|
Describe the bug
Having
on_booted
event in puma configuration file fails to start puma server usingpumactl -F config/puma.rb start
.It raises error here since
@config.options[:events]
isnil
puma/lib/puma/dsl.rb
Lines 706 to 708 in 5fc43d7
while trying to load config here:
puma/lib/puma/control_cli.rb
Lines 130 to 131 in 5fc43d7
Puma config:
To Reproduce
Copy this into a file called
hello.ru
:Create config file called
puma.rb
with the following content:Run it with:
bundle exec pumactl -F puma.rb start hello.ru
Observe error:
The same can be reproduced with test config in the repository:
Expected behavior
Puma server should start
Desktop:
The text was updated successfully, but these errors were encountered: