A
A
Alexander Saburov2016-01-20 00:35:32
Ruby on Rails
Alexander Saburov, 2016-01-20 00:35:32

How to access a remote ruby ​​on rails server through a browser?

Good evening
I installed ruby ​​on the remote server first, then rails. The server starts up without problems:
9ba2909fcc9b420da012400f6e687745.png
But I can't log in to it through a browser using ip 89.108.76.54:3000. I start the server with the rails s -b 89.108.76.54 command. The ip address is the one provided by the hosting provider, the server has Centos 7 installed. I would appreciate any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2016-01-20
@artmizu

All due to the fact that network ports over 1024 are user-defined and closed to the outside.

  1. To check the performance at the development stage, you can use the ngrok service. This service sets up a tunnel, opening port 80 outward, even though the server itself is running on port 3000.
    Start the server first
    , then in another terminal window
    Now you can open the URL shown on the screen. It will be available to the whole world.
    Leaving ngrok running for a long time is dangerous from a system security point of view.
  2. For production on the server use
    Phusion Passenger, Unicorn, Puma, Thin, ...
    Rails Server Throwdown: Passenger, Unicorn or Puma?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question