Reputation: 1245
I am trying to run my Rails app like this:
rails s -p 3000 -b lvh.me
The problem is that I am getting the following exception:
Exiting
.rvm/gems/ruby-2.2.0/gems/puma-2.14.0/lib/puma/binder.rb:233:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
What could be a problem? Thanks.
Upvotes: 0
Views: 202
Reputation: 7655
Call it like this:
rails s -p 3000 -b 0.0.0.0
then you can visit your page at http://lvh.me:3000/
Upvotes: 2