Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Hiroyuki Watanabe
3,698 Pointsproblem happened when I start to Ruby on rails with cloud9
I can't get the address after I enter this command "rails server -b SIP -p $PORT exiting" My terminal said as below
$ rails server -b SIP -p $PORT
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://SIP:8080
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-05-04 23:21:32] INFO WEBrick 1.3.1
[2013-05-04 23:21:32] INFO ruby 1.9.3 (2012-11-10) [x86_64-linux]
Exiting
/opt/rh/ruby193/root/usr/share/ruby/webrick/utils.rb:75:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError)
from /opt/rh/ruby193/root/usr/share/ruby/webrick/utils.rb:75:in `create_listeners'
from /opt/rh/ruby193/root/usr/share/ruby/webrick/server.rb:82:in `listen'
from /opt/rh/ruby193/root/usr/share/ruby/webrick/server.rb:70:in `initialize'
from /opt/rh/ruby193/root/usr/share/ruby/webrick/httpserver.rb:45:in `initialize'
from /var/lib/stickshift/517f432650044679c700006c/app-root/data/lib/ruby/gems/gems/rack-1.4.5/lib/rack/handler/webrick.rb:1
0:in `new'
from /var/lib/stickshift/517f432650044679c700006c/app-root/data/lib/ruby/gems/gems/rack-1.4.5/lib/rack/handler/webrick.rb:1
What sholud I do to get the address? Please help me.
1 Answer
Jason Seifer
Treehouse Guest TeacherTry changing "SIP" to "$IP" and let us know if that fixes it.