-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Steps to reproduce
-
Open
puma.rb -
Add the follow line of code:
ssl_bind 'localhost', '3000', {
key: File.expand_path('../certificates/server.key', __FILE__),
cert: File.expand_path('../certificates/server.crt', __FILE__)
}Change
certificates/server.keyandcertificates/server.crtto your self-signed certificate.
- Run on root of app the command
puma.
Expected behavior
Runs puma server...
Actual behavior
2016-12-28 10:07:04 -0200: Listen loop error: #<NoMethodError: undefined method `check' for true:TrueClass>
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/minissl.rb:209:in `accept_nonblock'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:333:in `block in handle_servers'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:328:in `each'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:328:in `handle_servers'
/Users/Bruno/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:301:in `block in run'System configuration
Ruby version: ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]
Rails version: 5.0.0.1
Scong