E
E
Edward Ghore2015-07-18 19:10:54
Ruby on Rails
Edward Ghore, 2015-07-18 19:10:54

Why can't the Ruby on Rails application open at my_vps_ip:3000 on a VPS?

From the server's point of view, everything works fine and after executing the 'rails s' command, the RoR server writes that the application is running on port 3000 and invites you to go to http://localhost:3000.
Maybe you need to somehow open the port?
ISPmanager is installed on the VPS. Could it be that these are "tricks" of his firewall?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bukovki, 2015-07-18
@MrGhore

Because localhost is not accessible from the outside.
rails s -b 0.0.0.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question