ruby on rails - What is localhost and where is it defined? -
i changed thin puma @ recommendation of heroku.  when start rails app using puma server responds:  => booting puma => rails 4.2.2 application starting in development on http://localhost:3000 => run `rails server -h` more startup options => ctrl-c shutdown server puma 2.11.3 starting... * min threads: 0, max threads: 16 * environment: development * listening on tcp://localhost:3000  if go http://0.0.0.0:3000 in browser, old localhost thin server, not respond. however, if  open http://localhost:3000, works. appears definition of localhost has changed.
so, localhost?  in particular, sort of object it, how defined, how see actual ip address, , why puma change it?
if you're trying rails bind different ip, way -b option. bind 0.0.0.0 instead of rails-default localhost you'd want run along lines of rails s -b 0.0.0.0
note: explicit, may not bad idea throw -p 3000 option in there (sets port), though default not change. more info on available options can found running rails s -h well.
Comments
Post a Comment