Justin Hamblin
Justin Hamblin

Reputation: 21

Ruby Rails - Cloud9 - (SocketError)

When trying to start my Rails app in C9.io, I see the Socket Error below. I am unsure how to correct this issue. Any ideas?

Upvotes: 2

Views: 453

Answers (2)

D. SM
D. SM

Reputation: 14480

You have a dash before ip and port arguments. The values of the arguments are specified without dashes. Try:

rails s -b $IP -p $PORT

Upvotes: 0

Mahdi Chihaoui
Mahdi Chihaoui

Reputation: 55

I got the same error when tried to start my Sinatra app on cloud9. It turned out that I was running the command : $ bundle exec rackup -p $PORT -o $IP with root user (su). Try to run it on normal user.

Upvotes: 0

Related Questions