A new Rails 4.2.0 project has been created. Ran rails s , behaved as expected using WEBrick:
vagrant@web1 :~$ netstat -nlpt Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 27158/ruby2.1 tcp6 0 0 ::1:3000 :::* LISTEN 27158/ruby2.1
Added puma to the Gemfile, launched the package, then rails s again; came up with Puma, but only linked the tcp6 interface, not tcp:
vagrant@web1 :~$ netstat -nlpt Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 ::1:3000 :::* LISTEN 27116/ruby2.1
Which key? I did not search for searches.
UPDATE:
puma -b tcp://0.0.0.0:3000 . However, adding the bind directive to config / puma.rb and starting rails s fails:
bind 'tcp://0.0.0.0:3000'
The threads / workers directives in my configuration file work, however, I know that the configuration file is being downloaded and used. (He even added a puts statement to be sure.)
The configuration file is even matched if I just run puma , binding to the correct interface. I just need to resort to running puma instead of rails s , although this is annoying and should be added to my developer docs.
UPDATE2:
I was wrong. Running rails s does not automatically take config / puma.rb. Continuing the investigation ...
ruby-on-rails ipv6 puma
odigity
source share